Skip to content

Commit

Permalink
mp_create_game: Use "map_data" if already set in preference to "map_f…
Browse files Browse the repository at this point in the history
  • Loading branch information
jostephd committed Oct 1, 2019
1 parent a6d4d19 commit 67dd920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/multiplayer/mp_create_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ void mp_create_game::update_details(window& win)
create_engine_.get_state().classification().campaign = "";

find_widget<stacked_widget>(&win, "minimap_stack", false).select_layer(0);
const std::string map_data = current_scenario->data()["map_file"].empty()
const std::string map_data = !current_scenario->data()["map_data"].empty()
? current_scenario->data()["map_data"]
: filesystem::read_map(current_scenario->data()["map_file"]);
find_widget<minimap>(&win, "minimap", false).set_map_data(map_data);
Expand Down

0 comments on commit 67dd920

Please sign in to comment.