Merge remote-tracking branch 'origin/Piraterie'

This commit is contained in:
CTD 2014-08-13 23:59:09 +02:00
commit d546065bfd
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) {
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;
}