Set the resources::state_of_game pointer when creating the editor.

Fixes a segfault when placing a unit whose drawing deponds on a
working gamestate at the default map.
This commit is contained in:
Fabian Müller 2012-07-23 17:07:20 +00:00
parent 53dd67cceb
commit 205d9f95b2

View file

@ -107,6 +107,7 @@ void editor_controller::init_gui()
resources::units = &context_manager_->get_map().get_units();
resources::tod_manager = &context_manager_->get_map().get_time_manager();
resources::teams = &context_manager_->get_map().get_teams();
resources::state_of_game = &context_manager_->get_map().get_game_state();
gui_->change_map(&context_manager_->get_map());
gui_->change_units(&context_manager_->get_map().get_units());