Skip to content

Commit 8e100ae

Browse files
committed
Fixed the lack of playing map music after loading a savegame in the game in the same map.
1 parent 015185d commit 8e100ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sfall/Modules/MiscPatches.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,8 @@ static void PlayingMusicPatch() {
980980
HookCall(0x482BA0, map_load_file_hook);
981981

982982
HookCall(0x4C5999, wmSetMapMusic_hook); // related fix
983+
984+
LoadGameHook::OnGameReset() += []() { cMusicArea = -1; };
983985
}
984986

985987
static void __declspec(naked) op_display_msg_hook() {

0 commit comments

Comments
 (0)