Skip to content

Commit

Permalink
startup menu crash follow up (trunk only)
Browse files Browse the repository at this point in the history
Pat:
Either both editions [of bot()] should reset those botl flags
or neither one should.
  • Loading branch information
nethack.allison committed Jul 1, 2006
1 parent 2b8903c commit 13eeae9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/botl.c
Expand Up @@ -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 */

Expand Down

0 comments on commit 13eeae9

Please sign in to comment.