Browse Source

Fix build error in plrctrl.cpp (#3374)

Follow-up to #3370
pull/3379/head
Gleb Mazovetskiy 4 years ago committed by GitHub
parent
commit
12b73076b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Source/controls/plrctrls.cpp

4
Source/controls/plrctrls.cpp

@ -1037,9 +1037,7 @@ void HotSpellMove(AxisDirection dir)
return;
for (size_t i = 0; i < spellListItems.size(); i++) {
const size_t index = i;
if (searchForward)
index = spellListItems.size() - i - 1;
const size_t index = searchForward ? spellListItems.size() - i - 1 : i;
auto &spellListItem = spellListItems[index];
if (spellListItem.isSelected)

Loading…
Cancel
Save