Skip to content

Commit

Permalink
destruct olmec cutscene after kill
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Sep 28, 2023
1 parent 1c49a77 commit 37bdc64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/injected/ui_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 37bdc64

Please sign in to comment.