From 37bdc645aa45340403597bddb7590fdc728b9bdf Mon Sep 17 00:00:00 2001 From: Dregu Date: Thu, 28 Sep 2023 16:52:44 +0300 Subject: [PATCH] destruct olmec cutscene after kill --- src/injected/ui_util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/injected/ui_util.cpp b/src/injected/ui_util.cpp index 4d71f4c0b..d74586c2f 100644 --- a/src/injected/ui_util.cpp +++ b/src/injected/ui_util.cpp @@ -612,6 +612,7 @@ void UI::safe_destroy(Entity* ent, bool unsafe, bool recurse) // if cutscene is still running, perform the last frame of cutscene before killing olmec state->logic->olmec_cutscene->timer = 809; state->logic->olmec_cutscene->perform(); + state->logic->olmec_cutscene->~LogicOlmecCutscene(); state->logic->olmec_cutscene = nullptr; } destroy_entity_items(check);