diff --git a/doc/fixes36.3 b/doc/fixes36.3 index 94af43996..ee3964155 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -184,6 +184,7 @@ fix temple priests or shopkeepers moving over other monsters fix hero still hiding under a statue shattered by a land mine fix helping a monster out of a pit addressing a deleted trap fix launched rolling boulder code accessing deleted trap +fix monster stepping on a land mine code accessing deleted trap Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository diff --git a/src/trap.c b/src/trap.c index 6b9884ea6..cb025e514 100644 --- a/src/trap.c +++ b/src/trap.c @@ -2167,6 +2167,7 @@ register struct monst *mtmp; inescapable = force_mintrap || ((tt == HOLE || tt == PIT) && Sokoban && !trap->madeby_u); const char *fallverb; + xchar tx = trap->tx, ty = trap->ty; /* true when called from dotrap, inescapable is not an option */ if (mtmp == u.usteed) @@ -2649,7 +2650,7 @@ register struct monst *mtmp; trapkilled = TRUE; } /* a boulder may fill the new pit, crushing monster */ - fill_pit(trap->tx, trap->ty); + fill_pit(tx, ty); /* thitm may have already destroyed the trap */ if (DEADMONSTER(mtmp)) trapkilled = TRUE; if (unconscious()) {