1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +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) void CHighScoreInputScreen::clickPressed(const Point & cursorPosition)
{ {
if(statisticButton->pos.isInside(cursorPosition)) if(statisticButton && statisticButton->pos.isInside(cursorPosition))
return; return;
OBJECT_CONSTRUCTION; OBJECT_CONSTRUCTION;