diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-12-16 15:44:28 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-12-17 00:38:30 +0100 |
commit | af64117f09ba9b70d27c6b6da885d0474180849b (patch) | |
tree | 1caa2832de5a3781a5560e5685794c7a9c0b5587 | |
parent | 5fde176a9a3cc746f8aab24fb850e5b90aa51710 (diff) | |
download | NorthstarLauncher-1.11.1.tar.gz NorthstarLauncher-1.11.1.zip |
Fix UI VM destruction (again) (#370)v1.11.2-rc1v1.11.1-rc1v1.11.1
-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 { |