Skip to content

Commit

Permalink
Fix VQAs crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivDero committed Oct 29, 2024
1 parent 3b1f781 commit 65f68af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spawner/spawner_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 65f68af

Please sign in to comment.