In multi_consistency_error check for Game_wind before trying to set it in/visible - just for safety

This commit is contained in:
zicodxx 2010-11-09 11:53:14 +01:00
parent 6e1725d4e5
commit 19d00e9851
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20101109
--------
main/multi.c: In multi_consistency_error check for Game_wind before trying to set it in/visible - just for safety
20101101
--------
main/newmenu.c: In case listbox strings are too long for screen, fit box width to screen width, shorten strings and add a scroll effect to selected item

View file

@ -2667,9 +2667,11 @@ void multi_consistency_error(int reset)
if (++count < 10)
return;
window_set_visible(Game_wind, 0);
if (Game_wind)
window_set_visible(Game_wind, 0);
nm_messagebox(NULL, 1, TXT_OK, TXT_CONSISTENCY_ERROR);
window_set_visible(Game_wind, 1);
if (Game_wind)
window_set_visible(Game_wind, 1);
count = 0;
multi_quit_game = 1;
game_leave_menus();