mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
GRAPHICS: MACGUI: Do not crash when window callback is null
This commit is contained in:
parent
2feeefaed3
commit
58a30b9146
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user