From fa2f889bc2e8e1a0e439a4762d72acaac3fa88d6 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 1 Jan 2017 23:31:24 +0000 Subject: [PATCH] Fix #4951: RCT1 Scenario Menu doesn't display completion --- src/scenario/ScenarioRepository.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scenario/ScenarioRepository.cpp b/src/scenario/ScenarioRepository.cpp index d5fa90dba5..0a9b05fb2b 100644 --- a/src/scenario/ScenarioRepository.cpp +++ b/src/scenario/ScenarioRepository.cpp @@ -199,6 +199,10 @@ public: bool TryRecordHighscore(const utf8 * scenarioFileName, money32 companyValue, const utf8 * name) override { + // Scan the scenarios so we have a fresh list to query. This is to prevent the issue of scenario completions + // not getting recorded, see #4951. + Scan(); + scenario_index_entry * scenario = GetByFilename(scenarioFileName); if (scenario != nullptr) {