]> granicus.if.org Git - nethack/commitdiff
Reset dooridx too
authorPasi Kallinen <paxed@alt.org>
Thu, 26 May 2016 14:58:17 +0000 (17:58 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 26 May 2016 14:58:17 +0000 (17:58 +0300)
src/do_name.c

index 07871ffad498e2308637a1f440a40210ca60f8d3..8e0af2934785e3d954cf18cf71d6e58983e2788f 100644 (file)
@@ -423,7 +423,7 @@ const char *goal;
         } else if (c == '@') { /* return to hero's spot */
             /* reset 'm','M' and 'o','O'; otherwise, there's no way for player
                to achieve that except by manually cycling through all spots */
-            monidx = objidx = 0;
+            monidx = objidx = dooridx = 0;
             cx = u.ux;
             cy = u.uy;
             goto nxtc;