1
0
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:
Ivan Savenko 2025-01-19 12:40:17 +00:00
parent 82b81a7853
commit 4912e92f33

View File

@ -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;