From 1f323ab04e61749c49edfbd5ced23a0167b5e90c Mon Sep 17 00:00:00 2001 From: Steve Cotton Date: Sun, 3 Nov 2019 22:05:08 +0100 Subject: [PATCH] Fix the add_completed_campaign() call for the tutorial When completing the tutorial, the preferences file's [completed_campaigns] recorded that "" had been completed at difficulty NORMAL. This is an old bug, unrelated to the other tutorial changes that I'm making, but would cause problems if we want to change the UI based on whether the tutorial has already been completed. --- src/game_launcher.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game_launcher.cpp b/src/game_launcher.cpp index 9ddbbc962222..310588a2de24 100644 --- a/src/game_launcher.cpp +++ b/src/game_launcher.cpp @@ -678,6 +678,7 @@ void game_launcher::set_tutorial() state_.clear(); state_.classification().campaign_type = game_classification::CAMPAIGN_TYPE::TUTORIAL; state_.classification().campaign_define = "TUTORIAL"; + state_.classification().campaign = "Tutorial"; state_.mp_settings().mp_era = "era_default"; state_.set_carryover_sides_start( config {"next_scenario", "tutorial"}