Properly handle auto-research promotion techs at game start.

This was SVN commit r16009.
This commit is contained in:
leper
2014-11-25 22:47:02 +00:00
parent 7102f86de3
commit 1430efa9d6
5 changed files with 31 additions and 33 deletions
+2 -2
View File
@@ -649,12 +649,12 @@ ScriptInterface& CSimulation2::GetScriptInterface() const
return m->m_ComponentManager.GetScriptInterface();
}
void CSimulation2::ReplaceSkirmishGlobals()
void CSimulation2::PreInitGame()
{
JSContext* cx = GetScriptInterface().GetContext();
JSAutoRequest rq(cx);
JS::RootedValue global(cx, GetScriptInterface().GetGlobalObject());
GetScriptInterface().CallFunctionVoid(global, "ReplaceSkirmishGlobals");
GetScriptInterface().CallFunctionVoid(global, "PreInitGame");
}
void CSimulation2::InitGame(const CScriptVal& data)