]> granicus.if.org Git - nethack/commitdiff
mon_leaving_level followup
authorPatR <rankin@nethack.org>
Tue, 19 Apr 2022 19:30:23 +0000 (12:30 -0700)
committerPatR <rankin@nethack.org>
Tue, 19 Apr 2022 19:30:23 +0000 (12:30 -0700)
src/dog.c

index 7703bd92e25a8ca1b8943bd76b9e3b8b9cc6dfec..7690aac8f18eacdd4c8f20a5990ceac88f83681c 100644 (file)
--- a/src/dog.c
+++ b/src/dog.c
@@ -713,6 +713,7 @@ migrate_to_level(
         wormgone(mtmp); /* destroys tail and takes head off map */
         /* there used to be a place_monster() here for the relmon() below,
            but it doesn't require the monster to be on the map anymore */
+        mtmp->mx = mtmp->my = 0;
     }
 
     /* set minvent's obj->no_charge to 0 */