From b32fff8dad5ef442540f22983ede01fc05ae4087 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Fri, 12 Jun 2015 00:28:55 +0200 Subject: [PATCH] Fix flags on GetModule call --- src/scriptengine/script_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scriptengine/script_engine.cpp b/src/scriptengine/script_engine.cpp index 3b1d387e4..1e94e64c3 100644 --- a/src/scriptengine/script_engine.cpp +++ b/src/scriptengine/script_engine.cpp @@ -380,7 +380,7 @@ namespace Scripting bool ScriptEngine::compileLoadedScripts() { int r; - asIScriptModule *mod = m_engine->GetModule(MODULE_ID_MAIN_SCRIPT_FILE, asGM_ONLY_IF_EXISTS); + asIScriptModule *mod = m_engine->GetModule(MODULE_ID_MAIN_SCRIPT_FILE, asGM_CREATE_IF_NOT_EXISTS); // Compile the script. If there are any compiler messages they will // be written to the message stream that we set right after creating the