Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit d42044d2f7ea73bd7c1407a86f070c4dd46f275c 1 parent 4c3dbcf
@bradallred bradallred authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gemrb/core/GUI/EventMgr.cpp
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.