mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fixes #3238, SetGlobal 'TriggerHelper' called multiple times
This was SVN commit r16713.
This commit is contained in:
parent
65e442eea5
commit
6506bc20cb
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue