Skip to content

Commit

Permalink
Fix Map size: 0x0 in multiplayer create game menu
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffbeast committed Dec 20, 2019
1 parent 165ed81 commit bbc0eb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/dialogs/multiplayer/mp_create_game.cpp
Expand Up @@ -712,6 +712,10 @@ void mp_create_game::update_details(window& win)
const std::string map_data = !current_scenario->data()["map_data"].empty()
? current_scenario->data()["map_data"]
: filesystem::read_map(current_scenario->data()["map_file"]);
if (current_scenario->data()["map_data"].empty()) {
current_scenario->data()["map_data"] = map_data;
current_scenario->set_metadata();
}
find_widget<minimap>(&win, "minimap", false).set_map_data(map_data);

players.set_label(std::to_string(current_scenario->num_players()));
Expand Down

0 comments on commit bbc0eb8

Please sign in to comment.