mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 16:11:21 +00:00
Fixes #3238, SetGlobal 'TriggerHelper' called multiple times
This was SVN commit r16713.
This commit is contained in:
1 parent
65e442eea5
commit
6506bc20cb
1 file changed
+4
@@ -210,7 +210,11 @@ bool CSimulation2Impl::LoadTriggerScripts(CComponentManager& componentManager, J
|
||||
{
|
||||
std::string scriptName = "maps/" + scriptNames[i];
|
||||
if (loadedScripts)
|
||||
{
|
||||
if (loadedScripts->find(scriptName) != loadedScripts->end())
|
||||
return true;
|
||||
loadedScripts->insert(scriptName);
|
||||
}
|
||||
LOGMESSAGE("Loading trigger script '%s'", scriptName.c_str());
|
||||
if (!componentManager.LoadScript(scriptName.data()))
|
||||
ok = false;
|
||||
|
||||
Reference in new issue
Block a user