CID 22455 Logically dead code

github issue #359
This commit is contained in:
Enno Rehling 2015-11-11 16:00:07 +01:00
parent 972b8cee40
commit c5965fcd59
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ int sp_chaosrow(struct castorder * co)
if (u_race(df->unit)->battle_flags & BF_NOBLOCK) {
df->side->nonblockers[row] -= df->alive;
}
row = FIRST_ROW + (rng_int() % (LAST_ROW - FIRST_ROW));
row = FIRST_ROW + (rng_int() % (NUMROWS - FIRST_ROW));
switch (row) {
case FIGHT_ROW:
df->status = ST_FIGHT;