From 33f18a735986dcd136bf8ba70ad8331306c28227 Mon Sep 17 00:00:00 2001 From: Emma Miler Date: Fri, 16 Dec 2022 15:44:28 +0100 Subject: Fix UI VM destruction (again) (#370) --- NorthstarDLL/squirrel.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 void __fastcall DestroyVMHook(void* a1, CSquirr { realContext = ScriptContext::UI; g_pSquirrel->VMDestroyed(); - // Don't call DestroyVM here because it crashes. - // Respawn Code :tm: + DestroyVM(a1, sqvm); // If we pass UI here it crashes } else { -- cgit v1.2.3