diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-12-16 15:44:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 15:44:28 +0100 |
commit | 33f18a735986dcd136bf8ba70ad8331306c28227 (patch) | |
tree | 0723a0010ab29e643496c1b06e17f75439b5e772 /NorthstarDLL/squirrel.cpp | |
parent | f0285618c33bd0a48b2d80b905371589ade85c79 (diff) | |
download | NorthstarLauncher-33f18a735986dcd136bf8ba70ad8331306c28227.tar.gz NorthstarLauncher-33f18a735986dcd136bf8ba70ad8331306c28227.zip |
Fix UI VM destruction (again) (#370)
Diffstat (limited to 'NorthstarDLL/squirrel.cpp')
-rw-r--r-- | NorthstarDLL/squirrel.cpp | 3 |
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 { |