diff --git a/src/kernel/move.c b/src/kernel/move.c index a46379bd8..6ad931180 100644 --- a/src/kernel/move.c +++ b/src/kernel/move.c @@ -2314,7 +2314,7 @@ static void piracy_cmd(unit * u, struct order *ord) if (saff != 0) { saff = rng_int() % saff; for (dir = 0; dir != MAXDIRECTIONS; ++dir) { - if (saff != aff[dir].value) + if (saff < aff[dir].value) break; saff -= aff[dir].value; }