diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-26 00:51:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 00:51:26 +0200 |
commit | af61ba63fb18fed29c55900b4c85c9f7df730763 (patch) | |
tree | 92ef34a790a334433f224e936ecc0f7442ed1560 /modules | |
parent | 220ee8d942f9b6985ccc1811487d56247e949e39 (diff) | |
parent | 77c8f271e7ca8ab6374abdc7470d6a6f6afa18d4 (diff) |
Merge pull request #61400 from nathanfranke/err-fail-index
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)); } |