mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 13:21:10 +01:00
Added p_shape check to avoid engine crush
(cherry picked from commit 29a2809d2120bc740f948e4134e839557e689724)
This commit is contained in:
parent
4c27d02012
commit
be66ed9679
@ -686,6 +686,8 @@ void InputDefault::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_sh
|
||||
return;
|
||||
}
|
||||
|
||||
ERR_FAIL_INDEX(p_shape, Input::CURSOR_MAX);
|
||||
|
||||
OS::get_singleton()->set_custom_mouse_cursor(p_cursor, (OS::CursorShape)p_shape, p_hotspot);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user