diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-27 23:59:03 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-27 23:59:03 +0200 |
commit | 7e4ef2162a027f2df96eddddc8d3fca7d5082df8 (patch) | |
tree | 6c7078b119efcedc89b1e7f08e344ed087cb89b1 /src/audio/AudioLogic.cpp | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | bla (diff) | |
download | re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.tar re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.tar.gz re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.tar.bz2 re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.tar.lz re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.tar.xz re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.tar.zst re3-7e4ef2162a027f2df96eddddc8d3fca7d5082df8.zip |
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r-- | src/audio/AudioLogic.cpp | 4 |
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; } |