diff --git a/src/common/kernel/combatspells.c b/src/common/kernel/combatspells.c index 1f339f046..70fd88aa7 100644 --- a/src/common/kernel/combatspells.c +++ b/src/common/kernel/combatspells.c @@ -895,7 +895,7 @@ sp_chaosrow(fighter * fi, int level, int force, spell * sp) if (df->unit->race->battle_flags & BF_NOBLOCK) { df->side->nonblockers[row] -= df->alive; } - row = FIRST_ROW + (rand()% NUMROWS); + row = FIRST_ROW + (rand()%(NUMROWS-1)); switch (row) { case FIGHT_ROW: df->status = ST_FIGHT;