Fix an OOS without rejoin after selecting the first unit.

Introduced by 46ead523b8, caused by serializing the aura cache which is
initialized by the tooltip calls from the GUI.
Reviewed by Itms, in combination with 09e775446e fixes #4239.

This was SVN commit r18804.
This commit is contained in:
elexis
2016-10-06 14:11:56 +00:00
parent 46bfa4dbe3
commit d7e51f2a4f
@@ -10,9 +10,12 @@ DataTemplateManager.prototype.Init = function()
{
this.allTechs = {};
this.allAuras = {};
var techNames = this.ListAllTechs();
for (var i in techNames)
this.GetTechnologyTemplate(techNames[i]);
for (let techName of this.ListAllTechs())
this.GetTechnologyTemplate(techName);
for (let auraName of this.ListAllAuras())
this.GetAuraTemplate(auraName);
};
DataTemplateManager.prototype.GetTechnologyTemplate = function(template)
@@ -44,6 +47,11 @@ DataTemplateManager.prototype.ListAllTechs = function()
return Engine.FindJSONFiles("technologies", true);
};
DataTemplateManager.prototype.ListAllAuras = function()
{
return Engine.FindJSONFiles("auras", true);
};
DataTemplateManager.prototype.GetAllTechs = function()
{
return this.allTechs;