aboutsummaryrefslogtreecommitdiff
path: root/engines/m4
diff options
context:
space:
mode:
authorPaul Gilbert2009-12-19 05:46:26 +0000
committerPaul Gilbert2009-12-19 05:46:26 +0000
commitae50fdca7238c6898e9289935ec392f66e0311ae (patch)
treef6cb8709f343d10cd5c4e60c6b628e81dead7427 /engines/m4
parent26a5c1c3a5ea76a92ebe60f074c3fbfa64a06fa7 (diff)
downloadscummvm-rg350-ae50fdca7238c6898e9289935ec392f66e0311ae.tar.gz
scummvm-rg350-ae50fdca7238c6898e9289935ec392f66e0311ae.tar.bz2
scummvm-rg350-ae50fdca7238c6898e9289935ec392f66e0311ae.zip
Added an extra assert
svn-id: r46417
Diffstat (limited to 'engines/m4')
-rw-r--r--engines/m4/viewmgr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/m4/viewmgr.cpp b/engines/m4/viewmgr.cpp
index 6d91a12a9b..78ebbbad96 100644
--- a/engines/m4/viewmgr.cpp
+++ b/engines/m4/viewmgr.cpp
@@ -290,6 +290,7 @@ void ViewManager::handleMouseEvents(M4EventType event) {
// If a window sets the _captureEvents flag to true, it will receive all events until
// it sets it to false, even if it's not the top window
if (_captureEvents) {
+ assert(_captureScreen);
if (_captureScreen->screenFlags().get & SCREVENT_MOUSE)
(_captureScreen->onEvent)(event, 0, mousePos.x, mousePos.y, _captureEvents);