aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcat_or_not <41955154+catornot@users.noreply.github.com>2023-04-23 07:10:50 -0400
committerGitHub <noreply@github.com>2023-04-23 13:10:50 +0200
commitc50441f67a53ffa38f8f82e85aafbd4206bafc14 (patch)
tree0cf7d3d96e01635d5c0f5247b2491fe894eee1ce
parent7c2b56b1e978a23c55bb1d587a6633a7de81185c (diff)
downloadNorthstarLauncher-1.13.2-rc1.tar.gz
NorthstarLauncher-1.13.2-rc1.zip
Fix initscript issue that prevented Northstar from being run without any mods enabled/installed.
-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;