From 13eeae9523150311a54f99b7e862c4113a79dbb5 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Sat, 1 Jul 2006 19:32:27 +0000 Subject: [PATCH] startup menu crash follow up (trunk only) Pat: Either both editions [of bot()] should reset those botl flags or neither one should. --- src/botl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/botl.c b/src/botl.c index 01e23477e..299e2f4ea 100644 --- a/src/botl.c +++ b/src/botl.c @@ -611,9 +611,13 @@ bot() boolean valset[MAXBLSTATS]; if (!blinit) panic("bot before init."); - if (!youmonst.data) return; + if (!youmonst.data) { + context.botl = context.botlx = 0; + update_all = FALSE; + return; + } + cap = near_capacity(); - idx_p = idx; idx = 1 - idx; /* 0 -> 1, 1 -> 0 */ -- 2.50.1