Skip to content

Commit

Permalink
Fixup 0c0c42c in another way
Browse files Browse the repository at this point in the history
Apparently it's better to have game_classification explicit.
  • Loading branch information
Vultraz committed Jan 3, 2021
1 parent 6306e1d commit 32ac0ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game_classification.hpp
Expand Up @@ -29,7 +29,7 @@ class game_classification
{
public:
game_classification() = default;
game_classification(const config& cfg);
explicit game_classification(const config& cfg);

std::string label; /**< Name of the game (e.g. name of save file). */
std::string version; /**< Version game was created with. */
Expand Down
2 changes: 1 addition & 1 deletion src/saved_game.cpp
Expand Up @@ -782,7 +782,7 @@ void saved_game::set_data(config& cfg)
statistics::read_stats(stats);
}

classification_ = { cfg };
classification_ = game_classification{ cfg };
mp_settings_ = { cfg.child_or_empty("multiplayer") };

cfg.clear();
Expand Down

0 comments on commit 32ac0ce

Please sign in to comment.