From c9e8f281a5762069db4ea6b4d90fdab6f0425780 Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:08:07 +0300 Subject: [PATCH] Correct for loop end condition --- 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 dd544fb43a..341c79bd60 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) {