Browse Source

Merge pull request #1653 from qndel/SortHealer

SortHealer cleanup
pull/256/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
c9f9e70139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      Source/items.cpp

10
Source/items.cpp

@ -3744,12 +3744,10 @@ void SortHealer()
sorted = FALSE;
while (j > 2 && !sorted) {
sorted = TRUE;
if (j > 2) {
for (k = 2; k < j; k++) {
if (healitem[k].IDidx > healitem[k + 1].IDidx) {
BubbleSwapItem(&healitem[k], &healitem[k + 1]);
sorted = FALSE;
}
for (k = 2; k < j; k++) {
if (healitem[k].IDidx > healitem[k + 1].IDidx) {
BubbleSwapItem(&healitem[k], &healitem[k + 1]);
sorted = FALSE;
}
}
j--;

Loading…
Cancel
Save