1
0
forked from 0ad/0ad

Properly fix the typo mentioned in 91ed318f0d. The ++i in the for loop already increments i so doing it once more is not wanted.

Fixes #3854.

This was SVN commit r17955.
This commit is contained in:
Nicolas Auvray 2016-03-26 13:25:51 +00:00
parent 6b212dc6ad
commit c777e34cba

View File

@ -1202,12 +1202,8 @@ function TryConstructWall(player, cmpPlayer, controlAllUnits, cmd)
lastTowerControlGroup = newTowerControlGroup;
}
}
else
{
// failed to build wall piece, abort
i = i + 1; // compensate for the -1 subtracted by lastBuiltPieceIndex below
else // failed to build wall piece, abort
break;
}
}
var lastBuiltPieceIndex = i - 1;