From bec46d83c49f7822a3f258c8e5ea9398d0a2595c Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Fri, 16 Dec 2022 15:35:26 +0100 Subject: [PATCH] Fix UI VM destruction (again) --- NorthstarDLL/squirrel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp index fb4e77c51..3d62ac621 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 {