diff --git a/doc/fixes34.3 b/doc/fixes34.3 index 9614676ef..9f6247141 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -64,6 +64,7 @@ prevent boulder option from accepting a symbol that matches a monster symbol traveling while standing on a trap would sometime step in the wrong direction avoid traveling into water/lava, using usual running rules unchanging iron golem would still rehumanize in a rust trap +fix an impossible rndmonst: bad `mndx' bug Platform- and/or Interface-Specific Fixes diff --git a/src/makemon.c b/src/makemon.c index 123de5da1..a6cd84f42 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -1170,8 +1170,10 @@ rndmonst() rndmonst_state.choice_count = 0; /* look for first common monster */ - for (mndx = LOW_PM; mndx < SPECIAL_PM; mndx++) + for (mndx = LOW_PM; mndx < SPECIAL_PM; mndx++) { if (!uncommon(mndx)) break; + rndmonst_state.mchoices[mndx] = 0; + } if (mndx == SPECIAL_PM) { /* evidently they've all been exterminated */ #ifdef DEBUG