From 65f68afdb3dd28b5b9456bedbfbf083c9f212512 Mon Sep 17 00:00:00 2001 From: ZivDero Date: Tue, 29 Oct 2024 15:56:51 +0300 Subject: [PATCH] Fix VQAs crashing --- src/spawner/spawner_hooks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spawner/spawner_hooks.cpp b/src/spawner/spawner_hooks.cpp index e522051ec..2f98a5ed3 100644 --- a/src/spawner/spawner_hooks.cpp +++ b/src/spawner/spawner_hooks.cpp @@ -104,12 +104,11 @@ DECLARE_PATCH(_HouseClass_Expert_AI_Check_Allies) DECLARE_PATCH(_Play_VQA_Forbid_Skipping_In_MP_Patch) { GET_STACK_STATIC8(bool, cant_break_out, esp, 0x40); - cant_break_out |= (Session.Type != GAME_NORMAL && Session.Type != GAME_SKIRMISH); /** * Don't skip the movie. */ - if (cant_break_out) + if (cant_break_out || (Session.Type != GAME_NORMAL && Session.Type != GAME_SKIRMISH)) { JMP(0x0066BA30); }