Fix put_empobj() for types other than units
put_empobj() used struct empobj member uid, which is valid only for units. Existing users pass only units, fortunately. Fix by making it take type and uid parameters.
This commit is contained in:
parent
dd2d2d361a
commit
59c65239f7
4 changed files with 5 additions and 15 deletions
|
@ -321,7 +321,7 @@ mission(void)
|
|||
gp->mission = mission;
|
||||
gp->opx = x;
|
||||
gp->opy = y;
|
||||
put_empobj(gp);
|
||||
put_empobj(type, gp->uid, gp);
|
||||
}
|
||||
if (num == 0) {
|
||||
pr("No %s%s\n", ef_nameof(type), splur(num));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue