diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-24 10:51:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 10:51:31 +0200 |
commit | bd8d91254c1ef21cdfed2086ffe7f781e497c27e (patch) | |
tree | 1efe768444a5ea76b5a401a5e68af67b895a9522 /scene/gui | |
parent | 65dd1bf02392adf777ffd1891c8232615cf57a1d (diff) | |
parent | d79818acb6d07c97232eb82932c91c676054ce6c (diff) |
Merge pull request #61106 from snailrhymer/animation-library-fixes
Fix errors and improve UX relating to new animation libraries
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/option_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/option_button.cpp b/scene/gui/option_button.cpp index 4b79d79846..a86f2bdbc1 100644 --- a/scene/gui/option_button.cpp +++ b/scene/gui/option_button.cpp @@ -320,7 +320,7 @@ int OptionButton::get_selectable_item(bool p_from_last) const { } } } else { - for (int i = get_item_count() - 1; i >= 0; i++) { + for (int i = get_item_count() - 1; i >= 0; i--) { if (!is_item_disabled(i) && !is_item_separator(i)) { return i; } |