fix missing map previews in the lobby

regression from 'fix require_scenario & require_era'
This commit is contained in:
gfgtdf 2018-08-07 23:42:01 +02:00
parent 7e0d63d7c3
commit 9a3917dc35

View file

@ -1562,7 +1562,7 @@ void server::handle_player_in_game(socket_ptr socket, std::shared_ptr<simple_wml
// Update the game's description.
// If there is no shroud, then tell players in the lobby
// what the map looks like
const simple_wml::node& s = *wesnothd::game::starting_pos(g.level().root());
const simple_wml::node& s = *wesnothd::game::starting_pos(data.root());
// fixme: the hanlder of [store_next_scenario] below searches for 'mp_shroud' in [scenario]
// at least of the these cosed is likely wrong.
if(!data["mp_shroud"].to_bool()) {