Merge pull request #23 from CTD1/Piraterie

Piraterie repariert
This commit is contained in:
Enno Rehling 2014-08-08 01:06:49 +02:00
commit 1470b56253
1 changed files with 1 additions and 1 deletions

View File

@ -2320,7 +2320,7 @@ static void piracy_cmd(unit * u, struct order *ord)
if (saff != 0) { if (saff != 0) {
saff = rng_int() % saff; saff = rng_int() % saff;
for (dir = 0; dir != MAXDIRECTIONS; ++dir) { for (dir = 0; dir != MAXDIRECTIONS; ++dir) {
if (saff != aff[dir].value) if (saff < aff[dir].value)
break; break;
saff -= aff[dir].value; saff -= aff[dir].value;
} }