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:
parent
6b212dc6ad
commit
c777e34cba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user