fix bug in mon.c reported by paxed
Also adds a shorthand macro
monsym(&mons[n])
for getting the default symbol, used in the bugfix.
This commit is contained in:
@@ -260,5 +260,6 @@
|
||||
#define pmname(ptr,g) ((((g) == MALE || (g) == FEMALE) && (ptr)->pmnames[g]) \
|
||||
? (ptr)->pmnames[g] : (ptr)->pmnames[NEUTRAL])
|
||||
#endif
|
||||
#define monsym(ptr) (def_monsyms[(int) (ptr)->mlet].sym)
|
||||
|
||||
#endif /* MONDATA_H */
|
||||
|
||||
Reference in New Issue
Block a user