From a47ed9ed55d1286f338d8db6d6914cde815b2990 Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:08:39 +0300 Subject: [PATCH] Correct for loop end condition (#241) --- Tactical/World Items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tactical/World Items.cpp b/Tactical/World Items.cpp index dd544fb43..341c79bd6 100644 --- a/Tactical/World Items.cpp +++ b/Tactical/World Items.cpp @@ -136,7 +136,7 @@ void PruneWorldItems(void) for (size_t i = 0; i < gAllWorldItems.Items.size(); i++) { std::vector& items = gAllWorldItems.Items[i]; - for (INT32 j = items.size()-1; j > 0; j--) + for (INT32 j = items.size()-1; j >= 0; j--) { if (items[j].fExists == false) {