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:
Markus Armbruster 2008-02-23 07:48:32 +01:00
parent dd2d2d361a
commit 59c65239f7
4 changed files with 5 additions and 15 deletions

View file

@ -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);