ASYLUM: fix music changing

This commit is contained in:
alxpnv 2021-04-13 15:46:52 +03:00 committed by Eugene Sandulenko
parent 2d5d820c93
commit 530b4d51f6
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -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;
}