diff --git a/src/do_name.c b/src/do_name.c index 07871ffad..8e0af2934 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -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;