mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 10:42:05 +00:00
fixup minimap in case teams is null
This commit is contained in:
parent
e62553139c
commit
dc9585af62
@ -234,7 +234,7 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
|
||||
|
||||
if (terrain_info.is_village() && preferences_minimap_draw_villages) {
|
||||
|
||||
int side = resources::gameboard->village_owner(loc);
|
||||
int side = (resources::gameboard ? resources::gameboard->village_owner(loc) : -1); //check needed for mp create dialog
|
||||
|
||||
SDL_Color col = int_to_color(game_config::team_rgb_range.find("white")->second.min());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user