Fixed crash on entering the editor (bug #24964)
This was introduced in 6235e18bbd
.
This commit is contained in:
parent
450f16ffb8
commit
312a77c075
1 changed files with 4 additions and 1 deletions
|
@ -77,7 +77,10 @@ public:
|
|||
context_manager_.gui().change_display_context(&context_manager_.get_map_context());
|
||||
|
||||
resources::units = &context_manager_.get_map_context().get_units();
|
||||
resources::gameboard->teams() = context_manager_.get_map_context().get_teams();
|
||||
|
||||
if(resources::gameboard) {
|
||||
resources::gameboard->teams() = context_manager_.get_map_context().get_teams();
|
||||
}
|
||||
|
||||
// TODO register the tod_manager with the gui?
|
||||
resources::tod_manager = context_manager_.get_map_context().get_time_manager();
|
||||
|
|
Loading…
Add table
Reference in a new issue