Fix crash with child screens (e.g. saving a macro)

develop
lethosor 2014-05-19 15:53:29 -04:00
parent 96b70a93bc
commit 02811c773c
1 changed files with 2 additions and 0 deletions

@ -178,6 +178,8 @@ struct choose_start_site_hook : df::viewscreen_choose_start_sitest
df::viewscreen * top = Gui::getCurViewscreen();
VIRTUAL_CAST_VAR(screen, df::viewscreen_choose_start_sitest, top);
if (!screen)
return;
auto dim = Screen::getWindowSize();
int x = 1,