summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 12:23:57 +0200
committeraap <aap@papnet.eu>2020-05-06 12:23:57 +0200
commite0568a19d52e7aebef65960df93a90d0693c7b56 (patch)
treeb4ec779b2e76f6a2bebf286084d99888f8ad3275 /src/audio
parentupdating librw because of fuckup (diff)
downloadre3-e0568a19d52e7aebef65960df93a90d0693c7b56.tar
re3-e0568a19d52e7aebef65960df93a90d0693c7b56.tar.gz
re3-e0568a19d52e7aebef65960df93a90d0693c7b56.tar.bz2
re3-e0568a19d52e7aebef65960df93a90d0693c7b56.tar.lz
re3-e0568a19d52e7aebef65960df93a90d0693c7b56.tar.xz
re3-e0568a19d52e7aebef65960df93a90d0693c7b56.tar.zst
re3-e0568a19d52e7aebef65960df93a90d0693c7b56.zip
Diffstat (limited to 'src/audio')
-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;