Skip to content

Commit

Permalink
Reverse wearable removal loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch committed Aug 17, 2023
1 parent 3b3f330 commit 612f87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/scp_sf.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +2032,7 @@ public Action TF2Items_OnGiveNamedItem(int client, char[] classname, int index,
delete regions;

// Remove any wearable that has a conflicting equip_region
for (int wbl = 0; wbl < TF2Util_GetPlayerWearableCount(client); wbl++)
for (int wbl = TF2Util_GetPlayerWearableCount(client) - 1; wbl >= 0; wbl--)
{
int wearable = TF2Util_GetPlayerWearable(client, wbl);
if (wearable == -1)
Expand Down

0 comments on commit 612f87c

Please sign in to comment.