From 530b4d51f61cc000cc7d8c0ccf80d5f804a28df8 Mon Sep 17 00:00:00 2001 From: alxpnv Date: Tue, 13 Apr 2021 15:46:52 +0300 Subject: [PATCH] ASYLUM: fix music changing --- engines/asylum/system/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/asylum/system/sound.cpp b/engines/asylum/system/sound.cpp index 97c32cc3c68..359db585cd3 100644 --- a/engines/asylum/system/sound.cpp +++ b/engines/asylum/system/sound.cpp @@ -106,7 +106,7 @@ void Sound::playMusic(ResourceId resourceId, int32 volume) { void Sound::changeMusic(int32 index, int32 musicStatusExt) { if (index != getWorld()->musicCurrentResourceIndex) { - getWorld()->musicCurrentResourceIndex = index; + getWorld()->musicResourceIndex = index; getWorld()->musicStatusExt = musicStatusExt; getWorld()->musicFlag = 1; }