empobj characteristics.
(get_empobj_chr): Update get_empobj_chr() to use new
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 char *obj_nameof(struct empobj *gp);
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 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);
extern char *emp_obj_chr_name(struct empobj *gp);
extern int get_empobj_mob_max(int type);
get_empobj_chr(struct empobj *gp)
{
switch (gp->ef_type) {
case EF_LAND:
get_empobj_chr(struct empobj *gp)
{
switch (gp->ef_type) {
case EF_LAND:
- return &lchr[(int)gp->type];
+ return (struct empobj_chr *)&lchr[(int)gp->type];
- return &mchr[(int)gp->type];
+ return (struct empobj_chr *)&mchr[(int)gp->type];
- return &plchr[(int)gp->type];
+ return (struct empobj_chr *)&plchr[(int)gp->type];
- return &nchr[(int)gp->type];
+ return (struct empobj_chr *)&nchr[(int)gp->type];
- return &dchr[(int)gp->type];
+ return (struct empobj_chr *)&dchr[(int)gp->type];
}
CANT_REACH();
return NULL;
}
CANT_REACH();
return NULL;