diff --git a/include/empobj.h b/include/empobj.h index 408da5f0..a7b2e947 100644 --- a/include/empobj.h +++ b/include/empobj.h @@ -89,6 +89,6 @@ extern struct empobj *get_empobjp(int type, int id); extern int put_empobj(struct empobj *gp); extern void *get_empobj_chr(struct empobj *gp); extern char *emp_obj_chr_name(struct empobj *gp); -extern int get_empobj_mob_max(int ef_type); +extern int get_empobj_mob_max(int type); #endif diff --git a/src/lib/common/empobj.c b/src/lib/common/empobj.c index 64740efb..63a43331 100644 --- a/src/lib/common/empobj.c +++ b/src/lib/common/empobj.c @@ -132,9 +132,9 @@ emp_obj_chr_name(struct empobj *gp) } int -get_empobj_mob_max(int ef_type) +get_empobj_mob_max(int type) { - switch (ef_type) { + switch (type) { case EF_SHIP: return ship_mob_max; case EF_LAND: