Simplify empobj_chr_name() oops recovery

Return something usable instead of null.  Matches obj_nameof().  Fixes
those callers that neglected to check the value.
This commit is contained in:
Markus Armbruster 2008-02-25 21:15:50 +01:00
parent f99adf4b3c
commit 966b881667
2 changed files with 3 additions and 5 deletions

View file

@ -92,7 +92,7 @@ empobj_chr_name(struct empobj *gp)
return dchr[(int)gp->type].d_name;
}
CANT_REACH();
return NULL;
return "The Beast";
}
int