From b47af60b6f28ac912017dee26fe4d2cd95b57ccb Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 16 Sep 2019 01:11:21 +0200 Subject: [PATCH] SortHealer cleanup --- Source/items.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index db4c667bd..eb8368eec 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -3746,12 +3746,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--;