(populace): Remove parameter vec, work with sp->sct_item[] instead.
This is safe, because the only caller passed a copy of the latter created with getvec(), and populace() doesn't change it. (tax): Replace getvec() by direct, read-only item access.
This commit is contained in:
parent
5fb761ab45
commit
a46cee180a
3 changed files with 13 additions and 17 deletions
|
@ -595,8 +595,7 @@ extern int plague_people(struct natstr *, int *, u_short *, u_short *, int);
|
|||
/* plane.c */
|
||||
extern int prod_plane(int, int, int *, int);
|
||||
/* populace.c */
|
||||
extern void populace(struct natstr *, register struct sctstr *,
|
||||
register int *, int);
|
||||
extern void populace(struct natstr *, register struct sctstr *, int);
|
||||
extern int total_work(register int, register int, register int,
|
||||
register int, register int);
|
||||
/* prepare.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue