1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #60208 from Magorx/input-set-custom-mouse-cursor-fix

Added p_shape check to avoid engine crash in DisplayServer
This commit is contained in:
Rémi Verschelde
2022-04-14 00:12:51 +02:00
committed by GitHub

View File

@@ -855,6 +855,8 @@ void Input::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, co
return; return;
} }
ERR_FAIL_INDEX(p_shape, CursorShape::CURSOR_MAX);
set_custom_mouse_cursor_func(p_cursor, p_shape, p_hotspot); set_custom_mouse_cursor_func(p_cursor, p_shape, p_hotspot);
} }