Editor: fixed crash when loading scenarios
This commit is contained in:
parent
9630ed4937
commit
eea7bc0c63
1 changed files with 4 additions and 1 deletions
|
@ -317,7 +317,10 @@ void map_context::load_scenario(const config& game_config)
|
|||
music_tracks_.insert(std::pair<std::string, sound::music_track>(music["name"], sound::music_track(music)));
|
||||
}
|
||||
|
||||
resources::gameboard->teams() = teams_;
|
||||
// TODO: is the gameboard *supposed* to be loaded here...?
|
||||
if(resources::gameboard) {
|
||||
resources::gameboard->teams() = teams_;
|
||||
}
|
||||
|
||||
int i = 1;
|
||||
for(config &side : scenario.child_range("side"))
|
||||
|
|
Loading…
Add table
Reference in a new issue