Skip to content

Commit

Permalink
Correct for loop end condition (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asdow authored Oct 19, 2023
1 parent 8080b06 commit a47ed9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tactical/World Items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void PruneWorldItems(void)
for (size_t i = 0; i < gAllWorldItems.Items.size(); i++)
{
std::vector<WORLDITEM>& 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)
{
Expand Down

0 comments on commit a47ed9e

Please sign in to comment.