Fix flags on GetModule call

This commit is contained in:
Tobias Markus 2015-06-12 00:28:55 +02:00
parent d95bdc2ea9
commit b32fff8dad

View File

@ -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