diff --git a/Documentation/Changes.txt b/Documentation/Changes.txt index e9ea2eb87..87e974abe 100644 --- a/Documentation/Changes.txt +++ b/Documentation/Changes.txt @@ -21,7 +21,8 @@ Version 1.0.3 * Fix underwater door and double doors continuing to be interactable after opening. * Fix ability to turn when aligning to an object while standing. * Fix left arm lock while picking up an item with a flare in hand. -* Fix potential crashes when exiting game through title flyby. +* Fix potential crashes when exiting game. +* Fix secret soundtrack (which filename number should be the last) not playing. Version 1.0.2 diff --git a/TombEngine/Sound/sound.cpp b/TombEngine/Sound/sound.cpp index 65a5e7036..5dd142319 100644 --- a/TombEngine/Sound/sound.cpp +++ b/TombEngine/Sound/sound.cpp @@ -887,7 +887,7 @@ void SayNo() void PlaySecretTrack() { - if (SoundTracks.size() <= SecretSoundIndex) + if (SoundTracks.find(SecretSoundIndex) == SoundTracks.end()) { TENLog("No secret soundtrack index was found!", LogLevel::Warning); return;