mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
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:
parent
46bfa4dbe3
commit
d7e51f2a4f
1 changed files with 11 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue