aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmma Miler <emma.pi@protonmail.com>2022-12-16 15:44:28 +0100
committerGitHub <noreply@github.com>2022-12-16 15:44:28 +0100
commit33f18a735986dcd136bf8ba70ad8331306c28227 (patch)
tree0723a0010ab29e643496c1b06e17f75439b5e772
parentf0285618c33bd0a48b2d80b905371589ade85c79 (diff)
downloadNorthstarLauncher-33f18a735986dcd136bf8ba70ad8331306c28227.tar.gz
NorthstarLauncher-33f18a735986dcd136bf8ba70ad8331306c28227.zip
Fix UI VM destruction (again) (#370)
-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
{