From ae50fdca7238c6898e9289935ec392f66e0311ae Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 19 Dec 2009 05:46:26 +0000 Subject: Added an extra assert svn-id: r46417 --- engines/m4/viewmgr.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/m4') 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); -- cgit v1.2.3