aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NorthstarDLL/squirrel/squirrel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDLL/squirrel/squirrel.cpp b/NorthstarDLL/squirrel/squirrel.cpp
index 62287245..43c5296b 100644
--- a/NorthstarDLL/squirrel/squirrel.cpp
+++ b/NorthstarDLL/squirrel/squirrel.cpp
@@ -415,7 +415,7 @@ template <ScriptContext context> bool __fastcall CSquirrelVM_initHook(CSquirrelV
bool ret = CSquirrelVM_init<context>(vm, realContext, time);
for (Mod mod : g_pModManager->m_LoadedMods)
{
- if (mod.initScript.size() != 0)
+ if (mod.m_bEnabled && mod.initScript.size() != 0)
{
std::string name = mod.initScript.substr(mod.initScript.find_last_of('/') + 1);
std::string path = std::string("scripts/vscripts/") + mod.initScript;