mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Try to fix possible crash on statistics window
This commit is contained in:
parent
82b81a7853
commit
4912e92f33
@ -274,7 +274,7 @@ void CHighScoreInputScreen::show(Canvas & to)
|
||||
|
||||
void CHighScoreInputScreen::clickPressed(const Point & cursorPosition)
|
||||
{
|
||||
if(statisticButton->pos.isInside(cursorPosition))
|
||||
if(statisticButton && statisticButton->pos.isInside(cursorPosition))
|
||||
return;
|
||||
|
||||
OBJECT_CONSTRUCTION;
|
||||
|
Loading…
x
Reference in New Issue
Block a user