var inside loop was not redefined to undef, replace it by let, fixes #3513

This was SVN commit r17125.
This commit is contained in:
mimo 2015-10-11 11:04:53 +00:00
parent b0f267b61c
commit 93a14b595f

View file

@ -93,7 +93,7 @@ m.HQ.prototype.assignStartingEntities = function(gameState)
ent.unload(id);
ent.setMetadata(PlayerID, "access", gameState.ai.accessibility.getAccessValue(pos));
var bestbase;
let bestbase;
var territorypos = this.territoryMap.gamePosToMapPos(pos);
var territoryIndex = territorypos[0] + territorypos[1]*this.territoryMap.width;
for (let i = 1; i < this.baseManagers.length; ++i)