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:
parent
53dd67cceb
commit
205d9f95b2
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue