mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Fix crash when moving mouse around when a dialog box shows before game has fully initialised
Known to occur on OSX
This commit is contained in:
parent
bd314098de
commit
fa7d79d8db
@ -414,7 +414,7 @@ static void InputHandler_MouseWheel(void* obj, float delta) {
|
||||
|
||||
static void InputHandler_MouseMove(void* obj, int xDelta, int yDelta) {
|
||||
struct Screen* active = Gui_GetActiveScreen();
|
||||
Elem_HandlesMouseMove(active, Mouse_X, Mouse_Y);
|
||||
if (active) Elem_HandlesMouseMove(active, Mouse_X, Mouse_Y);
|
||||
}
|
||||
|
||||
static void InputHandler_MouseDown(void* obj, int button) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user