aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-09-03 01:08:39 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-09-03 01:08:39 +0100
commit1b891ff2f166a5d00270c1cd00d2606d8cfd114d (patch)
tree0608bfc71f17d2c79bdfe68e779a44c22f24ec29 /NorthstarDLL/squirrel.cpp
parent2f2b497aca23239406ce3f8d94f29f10d205a68b (diff)
downloadNorthstarLauncher-1b891ff2f166a5d00270c1cd00d2606d8cfd114d.tar.gz
NorthstarLauncher-1b891ff2f166a5d00270c1cd00d2606d8cfd114d.zip
various formatting changes and fixes
Diffstat (limited to 'NorthstarDLL/squirrel.cpp')
-rw-r--r--NorthstarDLL/squirrel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp
index 4bd4bca8..cf5cb49e 100644
--- a/NorthstarDLL/squirrel.cpp
+++ b/NorthstarDLL/squirrel.cpp
@@ -135,7 +135,7 @@ template <ScriptContext context> void SquirrelManager<context>::VMDestroyed()
template <ScriptContext context> void SquirrelManager<context>::ExecuteCode(const char* pCode)
{
- if (!m_pSQVM)
+ if (!m_pSQVM || !m_pSQVM->sqvm)
{
spdlog::error("Cannot execute code, {} squirrel vm is not initialised", GetContextName(context));
return;