diff --git a/binaries/data/mods/public/simulation/helpers/Commands.js b/binaries/data/mods/public/simulation/helpers/Commands.js index 38ec447353..8551a93403 100644 --- a/binaries/data/mods/public/simulation/helpers/Commands.js +++ b/binaries/data/mods/public/simulation/helpers/Commands.js @@ -1189,7 +1189,7 @@ function TryConstructWall(player, cmpPlayer, controlAllUnits, cmd) else { // failed to build wall piece, abort - i = j + 1; // compensate for the -1 subtracted by lastBuiltPieceIndex below + i = i + 1; // compensate for the -1 subtracted by lastBuiltPieceIndex below break; } }