From 22ef5e895801370317fc5bae8e613ca620d6cdff Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 5 Jan 2021 21:34:08 +1100 Subject: [PATCH] Initialize all load_game_metadata members --- src/savegame.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/savegame.hpp b/src/savegame.hpp index b95f65eb0de3..67defa5c8178 100644 --- a/src/savegame.hpp +++ b/src/savegame.hpp @@ -52,13 +52,13 @@ void clean_saves(const std::string& label); struct load_game_metadata { /** There may be different instances of the index for different directories */ - std::shared_ptr manager; + std::shared_ptr manager {}; /** Name of the savefile to be loaded (not including the directory). */ - std::string filename; + std::string filename = ""; /** The difficulty the save is meant to be loaded with. */ - std::string difficulty; + std::string difficulty = ""; /** State of the "show_replay" checkbox in the load-game dialog. */ bool show_replay = false; @@ -70,10 +70,10 @@ struct load_game_metadata bool select_difficulty = false; /** Summary config of the save selected in the load game dialog. */ - config summary; + config summary {}; /** Config information of the savefile to be loaded. */ - config load_config; + config load_config {}; }; /**