fix missing map previews in the lobby

regression from 'fix require_scenario & require_era'

(cherry-picked from commit 9a3917dc3518455b0b8fa03f95ea71217a23550c)
This commit is contained in:
gfgtdf 2018-08-07 23:42:01 +02:00
parent 932edd30c5
commit f517f3af74

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()) {