summaryrefslogtreecommitdiffstats
path: root/src/audio/PoliceRadio.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 12:23:26 +0200
committeraap <aap@papnet.eu>2020-05-06 12:23:26 +0200
commitcbfc45b3f72468e7880bec852773955d3886b5ff (patch)
treeb1c472a41e7b50d1950e37c8d27d1eb9531ca57d /src/audio/PoliceRadio.cpp
parentreverting fuckup (diff)
downloadre3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.gz
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.bz2
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.lz
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.xz
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.tar.zst
re3-cbfc45b3f72468e7880bec852773955d3886b5ff.zip
Diffstat (limited to '')
-rw-r--r--src/audio/PoliceRadio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/PoliceRadio.cpp b/src/audio/PoliceRadio.cpp
index 5470a1af..ec02368e 100644
--- a/src/audio/PoliceRadio.cpp
+++ b/src/audio/PoliceRadio.cpp
@@ -306,7 +306,7 @@ cAudioManager::SetupCrimeReport()
if (i == ARRAY_SIZE(m_sPoliceRadioQueue.crimes)) return false;
audioZoneId = CTheZones::FindAudioZone(&m_sPoliceRadioQueue.crimes[i].position);
if (audioZoneId >= 0 && audioZoneId < NUMAUDIOZONES) {
- zone = &CTheZones::ZoneArray[CTheZones::AudioZoneArray[audioZoneId]];
+ zone = CTheZones::GetAudioZone(audioZoneId);
for (int j = 0; j < NUMAUDIOZONES; j++) {
if (strcmp(zone->name, ZoneSfx[j].m_aName) == 0) {
sampleIndex = ZoneSfx[j].m_nSampleIndex;
@@ -722,7 +722,7 @@ cAudioManager::PlaySuspectLastSeen(float x, float y, float z)
if (MusicManager.m_nMusicMode != MUSICMODE_CUTSCENE && 60 - m_sPoliceRadioQueue.policeChannelTimer > 9) {
audioZone = CTheZones::FindAudioZone(&vec);
if (audioZone >= 0 && audioZone < NUMAUDIOZONES) {
- zone = &CTheZones::ZoneArray[CTheZones::AudioZoneArray[audioZone]];
+ zone = CTheZones::GetAudioZone(audioZone);
for (int i = 0; i < NUMAUDIOZONES; i++) {
if (strcmp(zone->name, ZoneSfx[i].m_aName) == 0) {
sample = ZoneSfx[i].m_nSampleIndex;