protection against JS warning
This was SVN commit r16319.
This commit is contained in:
parent
cd9eeef1b7
commit
b239bcd8b9
@ -1792,7 +1792,7 @@ m.AttackPlan.prototype.removeTrainingUnitsFromPlan = function(gameState)
|
||||
{
|
||||
for (let trainer of gameState.getOwnTrainingFacilities().values())
|
||||
for (let item of trainer.trainingQueue())
|
||||
if (item.metadata && item.metadata.plan == this.name)
|
||||
if (item.metadata && item.metadata.plan && item.metadata.plan == this.name)
|
||||
item.metadata.plan = undefined;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user