summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-27 02:33:27 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-27 02:33:27 +0200
commit7a79b74778b883f21ed202fa15143217f5c2422e (patch)
treec9b8c29cef28f88c6bfccf4ae4bc3594cf89dd03
parentadded some unused enums (diff)
downloadre3-7a79b74778b883f21ed202fa15143217f5c2422e.tar
re3-7a79b74778b883f21ed202fa15143217f5c2422e.tar.gz
re3-7a79b74778b883f21ed202fa15143217f5c2422e.tar.bz2
re3-7a79b74778b883f21ed202fa15143217f5c2422e.tar.lz
re3-7a79b74778b883f21ed202fa15143217f5c2422e.tar.xz
re3-7a79b74778b883f21ed202fa15143217f5c2422e.tar.zst
re3-7a79b74778b883f21ed202fa15143217f5c2422e.zip
-rw-r--r--src/audio/AudioLogic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 56e602fd..ab135877 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -8552,12 +8552,12 @@ const MissionAudioData MissionAudioNameSfxAssoc[] = {
{"door_1", STREAMED_SOUND_MISSION_DOOR_1}, {"door_2", STREAMED_SOUND_MISSION_DOOR_2}, {"door_3", STREAMED_SOUND_MISSION_DOOR_3},
{"door_4", STREAMED_SOUND_MISSION_DOOR_4}, {"door_5", STREAMED_SOUND_MISSION_DOOR_5}, {"door_6", STREAMED_SOUND_MISSION_DOOR_6},
{"t3_a", STREAMED_SOUND_MISSION_T3_A}, {"t3_b", STREAMED_SOUND_MISSION_T3_B}, {"t3_c", STREAMED_SOUND_MISSION_T3_C},
- {"k1_b", STREAMED_SOUND_MISSION_K1_B}, {"c_1", STREAMED_SOUND_MISSION_CAT1}};
+ {"k1_b", STREAMED_SOUND_MISSION_K1_B}, {"c_1", STREAMED_SOUND_MISSION_CAT1}, {nil, 0}};
int32
FindMissionAudioSfx(const char *name)
{
- for (uint32 i = 0; i < ARRAY_SIZE(MissionAudioNameSfxAssoc); ++i) {
+ for (uint32 i = 0; MissionAudioNameSfxAssoc[i].m_pName != nil; ++i) {
if (!CGeneral::faststricmp(MissionAudioNameSfxAssoc[i].m_pName, name))
return MissionAudioNameSfxAssoc[i].m_nId;
}