diff options
author | Nathan Franke <me@nathan.sh> | 2022-05-25 11:39:00 -0500 |
---|---|---|
committer | Nathan Franke <me@nathan.sh> | 2022-05-25 13:36:45 -0500 |
commit | 77c8f271e7ca8ab6374abdc7470d6a6f6afa18d4 (patch) | |
tree | b2894e8a5125cf7fc04adbdbd7fc66f69cc867be /modules | |
parent | 410b6b5f7d23638997aa7de3faf3b382c95e7fc3 (diff) |
use ERR_FAIL_INDEX when preferred
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openxr/editor/openxr_action_editor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/openxr/editor/openxr_action_editor.cpp b/modules/openxr/editor/openxr_action_editor.cpp index e2a4f67f16..41c6465f43 100644 --- a/modules/openxr/editor/openxr_action_editor.cpp +++ b/modules/openxr/editor/openxr_action_editor.cpp @@ -63,8 +63,7 @@ void OpenXRActionEditor::_on_action_localized_name_changed(const String p_new_te } void OpenXRActionEditor::_on_item_selected(int p_idx) { - ERR_FAIL_COND(p_idx < 0); - ERR_FAIL_COND(p_idx >= OpenXRAction::OPENXR_ACTION_MAX); + ERR_FAIL_INDEX(p_idx, OpenXRAction::OPENXR_ACTION_MAX); action->set_action_type(OpenXRAction::ActionType(p_idx)); } |