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
3117ef9c7a
commit
e63f38833b
4 changed files with 5 additions and 15 deletions
|
@ -91,7 +91,7 @@ struct empobj_chr;
|
|||
|
||||
extern char *obj_nameof(struct empobj *gp);
|
||||
extern struct empobj *get_empobjp(int type, int id);
|
||||
extern int put_empobj(struct empobj *gp);
|
||||
extern int put_empobj(int, int, struct empobj *gp);
|
||||
extern struct empobj_chr *get_empobj_chr(struct empobj *gp);
|
||||
extern char *emp_obj_chr_name(struct empobj *gp);
|
||||
extern int get_empobj_mob_max(int type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue