Merge pull request #30371 from creikey/fix-30366
Give up finding item if started at beginning
This commit is contained in:
commit
da1d5d89fd
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
|
||||||
|
|
||||||
for (int i = current + 1; i <= items.size(); i++) {
|
for (int i = current + 1; i <= items.size(); i++) {
|
||||||
if (i == items.size()) {
|
if (i == items.size()) {
|
||||||
if (current == 0)
|
if (current == 0 || current == -1)
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
Loading…
Reference in a new issue