Skip to content

Commit

Permalink
EventMgr: we need to check that last_win_mousefocused exists
Browse files Browse the repository at this point in the history
I didnt think it was possible to get a focus lock with no window, but I was wrong.
  • Loading branch information
bradallred committed Dec 31, 2013
1 parent 4c3dbcf commit d42044d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/core/GUI/EventMgr.cpp
Expand Up @@ -180,7 +180,7 @@ void EventMgr::MouseMove(unsigned short x, unsigned short y)
// for scrolling // for scrolling
gc->OnGlobalMouseMove(x, y); gc->OnGlobalMouseMove(x, y);
} }
if (focusLock) { if (last_win_mousefocused && focusLock) {
last_win_mousefocused->OnMouseOver(x, y); last_win_mousefocused->OnMouseOver(x, y);
return; return;
} }
Expand Down

0 comments on commit d42044d

Please sign in to comment.