Fix #5977: Custom music files not showing up in music list

This commit is contained in:
ζeh Matt 2017-07-24 17:08:10 +02:00 committed by Michael Steenbeek
parent 346c9e1359
commit d45044239e
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,7 @@
- Fix: [#5880] Leaving bumper cars without building causes assertion.
- Fix: [#5920] Placing guest spawn doesn't do anything every 3rd click
- Fix: [#5939] Crash when importing 'Six Flags Santa Fe'.
- Fix: [#5977] Custom music files not showing up in music list
- Improved: [#4301] Leading and trailing whitespace in player name is now removed.
- Improved: [#5859] OpenGL rendering performance
- Improved: [#5863] Switching drawing engines no longer requires the application to restart.

View File

@ -370,6 +370,13 @@ void audio_init_ride_sounds_and_info()
{
rideMusicInfo->length = 0;
}
// FIX: Custom ones have no length set and while populating the combo box
// they are ignored if 0.
if ((m == 36 || m == 37) && rideMusicInfo->length == 0)
{
// Try to get it.
rideMusicInfo->length = fs.GetLength();
}
}
catch (const Exception &)
{