forked from mirrors/0ad
Fix an OOS without rejoin after selecting the first unit.
Introduced by46ead523b8, caused by serializing the aura cache which is initialized by the tooltip calls from the GUI. Reviewed by Itms, in combination with09e775446efixes #4239. This was SVN commit r18804.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user