From 1578cd816a3c2cde9636f5bd441a56c700bb6286 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Sun, 3 Jul 2022 16:19:42 +0200 Subject: [PATCH] Fix #17493: Title sequence defaults to RCT1 Even while the default config value is "*OPENRCT2", the game failed to find this config ID and fell back to the first sequence in the list instead. --- src/openrct2/title/TitleSequenceManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/openrct2/title/TitleSequenceManager.cpp b/src/openrct2/title/TitleSequenceManager.cpp index ce8033b052..e819c640e3 100644 --- a/src/openrct2/title/TitleSequenceManager.cpp +++ b/src/openrct2/title/TitleSequenceManager.cpp @@ -274,8 +274,7 @@ namespace TitleSequenceManager { for (const auto& pseq : TitleSequenceManager::PredefinedSequences) { - auto predefinedName = Path::GetFileNameWithoutExtension(pseq.Filename); - if (String::Equals(name, predefinedName, true)) + if (String::Equals(name, pseq.ConfigId, true)) { return true; } @@ -317,7 +316,7 @@ const utf8* title_sequence_manager_get_config_id(size_t index) return nullptr; } const auto& name = item->Name; - auto filename = Path::GetFileName(name); + const auto filename = Path::GetFileName(item->Path); for (const auto& pseq : TitleSequenceManager::PredefinedSequences) { if (String::Equals(filename, pseq.Filename, true))