Added p_shape check to avoid engine crush

This commit is contained in:
KingCakeTheFruity 2022-04-13 14:50:30 +03:00
parent 338b23d572
commit 29a2809d21

View File

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