]> granicus.if.org Git - nethack/commitdiff
Use correct findtravelpath param value
authorPasi Kallinen <paxed@alt.org>
Thu, 31 Mar 2022 14:50:00 +0000 (17:50 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 31 Mar 2022 14:50:00 +0000 (17:50 +0300)
src/hack.c

index 1864906fdff5e9aa5bd3de4bc28001f0e3f730da..4096bc71b81f446593c902a5211c69e2b405056d 100644 (file)
@@ -2196,8 +2196,8 @@ domove_core(void)
             displaceu = FALSE;          /* involuntary swap */
 
     if (g.context.travel) {
-        if (!findtravelpath(FALSE))
-            (void) findtravelpath(TRUE);
+        if (!findtravelpath(TRAVP_TRAVEL))
+            (void) findtravelpath(TRAVP_GUESS);
         g.context.travel1 = 0;
     }