mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
- fixed crash on finishing a campaign.
This commit is contained in:
@ -512,10 +512,10 @@ void CGPreGame::update()
|
|||||||
GH.updateTime();
|
GH.updateTime();
|
||||||
GH.handleEvents();
|
GH.handleEvents();
|
||||||
|
|
||||||
//if (GH.curInt == nullptr) // no redraw, when a new game was created
|
// check for null othervice crash on finishing a campaign
|
||||||
//return;
|
// /FIXME: find out why GH.listInt is empty to begin with
|
||||||
|
if (GH.topInt() != nullptr)
|
||||||
GH.topInt()->show(screen);
|
GH.topInt()->show(screen);
|
||||||
|
|
||||||
if (settings["general"]["showfps"].Bool())
|
if (settings["general"]["showfps"].Bool())
|
||||||
GH.drawFPSCounter();
|
GH.drawFPSCounter();
|
||||||
|
Reference in New Issue
Block a user