1
0
forked from mirrors/0ad

Fix a frequent rejoining OOS. We actually need to serialize the data loaded from the disk, because JS objects in the memory or newly loaded from the disk will not behave the same way.

Fixes #4239, refs #3834.

This was SVN commit r18752.
This commit is contained in:
Itms
2016-09-23 21:24:14 +00:00
parent ad1a4d6121
commit 09e775446e
@@ -15,13 +15,6 @@ DataTemplateManager.prototype.Init = function()
this.GetTechnologyTemplate(techNames[i]);
};
DataTemplateManager.prototype.Serialize = null; // we have no dynamic state to save
DataTemplateManager.prototype.Deserialize = function()
{
this.Init();
};
DataTemplateManager.prototype.GetTechnologyTemplate = function(template)
{
if (!this.allTechs[template])