From bef853d0abe6936f83e6eeebe6201957c81e4a72 Mon Sep 17 00:00:00 2001 From: Kane Date: Tue, 17 Aug 2021 05:01:37 +1000 Subject: [PATCH] Fix #15225: Some scenarios show incorrect name in-game The S6Importer/SawyerChunkReader correctly decodes the scenario name and description and stores it under the rct_s6_info struct (info.name and info.details) The problem is that on lines 369-370 the name and description are replaced with the scenario internal name and description - which is sometimes incorrect - specifically a number of scenarios by Frontier in the exapansion packs. --- src/openrct2/rct2/S6Importer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 206dabcd4a..3bbced91e5 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -366,8 +366,6 @@ public: // pad_01358842 ImportResearchList(); gMapBaseZ = _s6.map_base_z; - gScenarioName = std::string_view(_s6.scenario_name, sizeof(_s6.scenario_name)); - gScenarioDetails = std::string_view(_s6.scenario_description, sizeof(_s6.scenario_description)); gBankLoanInterestRate = _s6.current_interest_rate; // pad_0135934B // Preserve compatibility with vanilla RCT2's save format.