src/gui/widget/menue.cpp check if pointer is not NULL

This commit is contained in:
Jacek Jendrzej
2016-08-17 17:23:08 +02:00
parent 1306a7c1a3
commit a29f433ded

View File

@@ -1428,7 +1428,8 @@ void CMenuWidget::paintHint(int pos)
/* clear info box */
if ((info_box) && (pos < 0))
savescreen ? info_box->hide() : info_box->kill();
hint_painted = info_box->isPainted();
if (info_box)
hint_painted = info_box->isPainted();
}
if (pos < 0)
return;