From: nethack.allison Date: Sat, 1 Jul 2006 19:32:27 +0000 (+0000) Subject: startup menu crash follow up (trunk only) X-Git-Tag: MOVE2GIT~965 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13eeae9523150311a54f99b7e862c4113a79dbb5;p=nethack startup menu crash follow up (trunk only) Pat: Either both editions [of bot()] should reset those botl flags or neither one should. --- 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 */