mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 20:11:55 +00:00
Fix 9fc6c3c897 - Set entity/template before deserializing.
Following 9fc6c3c897, components Deserialize() was called before
entity/template were set, which is incorrect.
Refs #4698.
Differential Revision: https://code.wildfiregames.com/D3337
This was SVN commit r24561.
This commit is contained in:
1 parent
a3c810b5eb
commit
78764926f8
2 files changed
+12
-3
No files matched your search
@@ -62,9 +62,8 @@ void CComponentTypeScript::Deserialize(const CParamNode& paramNode, IDeserialize
|
||||
{
|
||||
ScriptRequest rq(m_ScriptInterface);
|
||||
|
||||
deserialize.ScriptObjectAssign("comp", m_Instance);
|
||||
|
||||
m_ScriptInterface.SetProperty(m_Instance, "entity", (int)ent, true, false);
|
||||
m_ScriptInterface.SetProperty(m_Instance, "template", paramNode, true, false);
|
||||
|
||||
deserialize.ScriptObjectAssign("comp", m_Instance);
|
||||
}
|
||||
Reference in new issue
Block a user