1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- fixed crash on finishing a campaign.

This commit is contained in:
Ivan Savenko 2014-02-01 14:32:09 +00:00
parent 5a7551388b
commit 14535c1c7b

View File

@ -512,10 +512,10 @@ void CGPreGame::update()
GH.updateTime();
GH.handleEvents();
//if (GH.curInt == nullptr) // no redraw, when a new game was created
//return;
GH.topInt()->show(screen);
// check for null othervice crash on finishing a campaign
// /FIXME: find out why GH.listInt is empty to begin with
if (GH.topInt() != nullptr)
GH.topInt()->show(screen);
if (settings["general"]["showfps"].Bool())
GH.drawFPSCounter();