Fix secret soundtrack not playing

This commit is contained in:
Lwmte 2022-11-02 01:23:47 +02:00
parent 1ad0839e34
commit 650873ea3e
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,8 @@ Version 1.0.3
* Fix underwater door and double doors continuing to be interactable after opening. * Fix underwater door and double doors continuing to be interactable after opening.
* Fix ability to turn when aligning to an object while standing. * 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 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 Version 1.0.2

View file

@ -887,7 +887,7 @@ void SayNo()
void PlaySecretTrack() void PlaySecretTrack()
{ {
if (SoundTracks.size() <= SecretSoundIndex) if (SoundTracks.find(SecretSoundIndex) == SoundTracks.end())
{ {
TENLog("No secret soundtrack index was found!", LogLevel::Warning); TENLog("No secret soundtrack index was found!", LogLevel::Warning);
return; return;