From 46370fc124058cf8da151bd6e2153d2d6e2e34f9 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 10 Apr 2024 11:34:41 -0400 Subject: [PATCH] another follow-up: move values that can't be indexes Move the values that are not legal mons indexes out of the default handling case in make_corpse(). --- src/mon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon.c b/src/mon.c index 9aaffe60b..f6306878b 100644 --- a/src/mon.c +++ b/src/mon.c @@ -688,10 +688,10 @@ make_corpse(struct monst *mtmp, unsigned int corpseflags) free_mgivenname(mtmp); newsym(x, y); return obj; -#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) - case LEAVESTATUE: case NON_PM: case NUMMONS: + case NON_PM: case LEAVESTATUE: case NUMMONS: /* never use as index */ break; +#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) case PM_GIANT_ANT: case PM_KILLER_BEE: case PM_SOLDIER_ANT: case PM_FIRE_ANT: case PM_GIANT_BEETLE: case PM_QUEEN_BEE: