Permalink
Browse files

EventMgr: we need to check that last_win_mousefocused exists

I didnt think it was possible to get a focus lock with no window, but I was wrong.
  • Loading branch information...
1 parent 4c3dbcf commit d42044d2f7ea73bd7c1407a86f070c4dd46f275c @bradallred bradallred committed Dec 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 gemrb/core/GUI/EventMgr.cpp
@@ -180,7 +180,7 @@ void EventMgr::MouseMove(unsigned short x, unsigned short y)
// for scrolling
gc->OnGlobalMouseMove(x, y);
}
- if (focusLock) {
+ if (last_win_mousefocused && focusLock) {
last_win_mousefocused->OnMouseOver(x, y);
return;
}

0 comments on commit d42044d

Please sign in to comment.