mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
var inside loop was not redefined to undef, replace it by let, fixes #3513
This was SVN commit r17125.
This commit is contained in:
parent
b0f267b61c
commit
93a14b595f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue