GRAPHICS: MACGUI: Do not crash when window callback is null

This commit is contained in:
Eugene Sandulenko 2017-08-05 00:24:28 +02:00
parent 2feeefaed3
commit 58a30b9146

View File

@ -494,7 +494,10 @@ bool MacWindow::processEvent(Common::Event &event) {
return false;
}
return (*_callback)(click, event, _dataPtr);
if (_callback)
return (*_callback)(click, event, _dataPtr);
else
return false;
}
} // End of namespace Wage