diff options
author | Eugene Sandulenko | 2017-08-05 00:24:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-05 00:24:28 +0200 |
commit | 58a30b9146ba1658dac1644d90cb02a3c5f54a75 (patch) | |
tree | cf374498ebc0cd2a8b3d1a3a2eae71d6f1b11381 | |
parent | 2feeefaed3a231128b07feac445f5b7b4c5088e9 (diff) | |
download | scummvm-rg350-58a30b9146ba1658dac1644d90cb02a3c5f54a75.tar.gz scummvm-rg350-58a30b9146ba1658dac1644d90cb02a3c5f54a75.tar.bz2 scummvm-rg350-58a30b9146ba1658dac1644d90cb02a3c5f54a75.zip |
GRAPHICS: MACGUI: Do not crash when window callback is null
-rw-r--r-- | graphics/macgui/macwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/macgui/macwindow.cpp b/graphics/macgui/macwindow.cpp index 0fce19e482..227f789d30 100644 --- a/graphics/macgui/macwindow.cpp +++ b/graphics/macgui/macwindow.cpp @@ -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 |