Skip to content

Commit

Permalink
Fixed crash when calling start_gdialog outside talk_p_proc
Browse files Browse the repository at this point in the history
(the fix was embedded in StartGDialogFix, now it works regardless of
the option.)
  • Loading branch information
NovaRain committed Oct 19, 2023
1 parent 143ec75 commit b1ce08a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sfall/Modules/BugFixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3712,6 +3712,10 @@ void BugFixes::init() {
if (IniReader::GetConfigInt("Misc", "StartGDialogFix", 0)) {
dlogr("Applying start_gdialog argument fix.", DL_FIX);
MakeCall(0x456F08, op_start_gdialog_hack);
} else {
// Fix crash when calling start_gdialog outside of the talk_p_proc procedure for talking heads
__int64 data = 0x900C24448B; // mov eax, [esp + 0x3C - 0x30] (fix dialog_target)
SafeWriteBytes(0x456F08, (BYTE*)&data, 5);
}

// Fix for Heave Ho! perk increasing Strength stat above 10 when determining the maximum range of thrown weapons
Expand Down

0 comments on commit b1ce08a

Please sign in to comment.