Fix accessing deleted fire trap

melt_ice can delete the fire trap, in the case where the trap
is on ice, and a monster carrying a boulder triggers it, then drowns.

mintrap -> minliquid -> mondead -> ... -> mdrop_obj ->
   flooreffects -> boulder_hits_pool -> delfloortrap
This commit is contained in:
Pasi Kallinen
2019-01-10 21:47:04 +02:00
parent b1782b813f
commit 5e2236a3ef

View File

@@ -2421,7 +2421,7 @@ register struct monst *mtmp;
You("smell smoke.");
if (is_ice(mtmp->mx, mtmp->my))
melt_ice(mtmp->mx, mtmp->my, (char *) 0);
if (see_it)
if (see_it && t_at(mtmp->mx, mtmp->my))
seetrap(trap);
break;
case PIT: