summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 10:11:37 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 10:11:37 +0100
commit4846564c78076eefdc4066accc204082dea2ffc7 (patch)
treee0601e3aaa03b691baa31a8608e99cf90adffb9d /src/audio
parentFix debug menu memory leak (diff)
downloadre3-4846564c78076eefdc4066accc204082dea2ffc7.tar
re3-4846564c78076eefdc4066accc204082dea2ffc7.tar.gz
re3-4846564c78076eefdc4066accc204082dea2ffc7.tar.bz2
re3-4846564c78076eefdc4066accc204082dea2ffc7.tar.lz
re3-4846564c78076eefdc4066accc204082dea2ffc7.tar.xz
re3-4846564c78076eefdc4066accc204082dea2ffc7.tar.zst
re3-4846564c78076eefdc4066accc204082dea2ffc7.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/MusicManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index 8aedf306..bbbf3549 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -512,7 +512,7 @@ cMusicManager::ServiceGameMode()
gRetuneCounter = 0;
field_2 = false;
} else if (ped) {
- if (ped->m_objective != OBJECTIVE_WAIT_ON_FOOT_AT_ICE_CREAM_VAN && ped->m_objective != OBJ_55) {
+ if(!ped->DyingOrDead()) {
#ifdef GTA_PC
if (SampleManager.IsMP3RadioChannelAvailable()
&& vehicle->m_nRadioStation < USERTRACK