inappropriate null sobj check - pull request 1173

This commit is contained in:
nhmall
2024-01-08 23:59:41 -05:00
parent a764d4fd61
commit 52940a4620
2 changed files with 4 additions and 1 deletions

View File

@@ -2614,6 +2614,9 @@ add new options 'nopick_dropped' and 'pickup_stolen' options to avoid
previously stolen from hero if moved upon while autopickup is On; both
bypass pickup_types and autopickup_exceptions (pr #1140 by entrez)
fix msg_window:combination and TTY getlin() ^P (pr #1155 by entrez)
remove a null sobj check from gold_detect that was situated after
dereferences had already been done (pr #1173 by argrath) and
adjust prototype in extern.h
Code Cleanup and Reorganization

View File

@@ -410,7 +410,7 @@ extern boolean trapped_chest_at(int, coordxy, coordxy);
extern boolean trapped_door_at(int, coordxy, coordxy);
extern struct obj *o_in(struct obj *, char) NONNULLARG1;
extern struct obj *o_material(struct obj *, unsigned) NONNULLARG1;
extern int gold_detect(struct obj *);
extern int gold_detect(struct obj *) NONNULLARG1;
extern int food_detect(struct obj *);
extern int object_detect(struct obj *, int);
extern int monster_detect(struct obj *, int);