mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
use ERR_FAIL_INDEX when preferred
This commit is contained in:
parent
410b6b5f7d
commit
77c8f271e7
7 changed files with 25 additions and 29 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue