Skip to content

Commit

Permalink
Clear item list for every storage at unit freeing
Browse files Browse the repository at this point in the history
missing curly bracket
  • Loading branch information
jasonch35 committed Jan 2, 2025
1 parent 89258f2 commit 9e25210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,7 @@ static int unit_free(struct block_list *bl, enum clr_type clrtype)
VECTOR_CLEAR(sd->title_ids); // Title [Dastgir/Hercules]
VECTOR_CLEAR(sd->agency_requests);

for (int i = 0; i < VECTOR_LENGTH(sd->storage.list); i++) {
for (int i = 0; i < VECTOR_LENGTH(sd->storage.list); i++)
VECTOR_CLEAR(VECTOR_INDEX(sd->storage.list, i).item);
VECTOR_CLEAR(sd->storage.list);

Expand Down

0 comments on commit 9e25210

Please sign in to comment.