aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NorthstarDLL/squirrel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp
index fb4e77c5..3d62ac62 100644
--- a/NorthstarDLL/squirrel.cpp
+++ b/NorthstarDLL/squirrel.cpp
@@ -325,8 +325,7 @@ template <ScriptContext context> void __fastcall DestroyVMHook(void* a1, CSquirr
{
realContext = ScriptContext::UI;
g_pSquirrel<ScriptContext::UI>->VMDestroyed();
- // Don't call DestroyVM here because it crashes.
- // Respawn Code :tm:
+ DestroyVM<ScriptContext::CLIENT>(a1, sqvm); // If we pass UI here it crashes
}
else
{