Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Update 1.3.1
Browse files Browse the repository at this point in the history
Reverted static Arraylist
  • Loading branch information
x07x08 authored Jan 29, 2023
1 parent c943d46 commit fd106a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Binary file modified addons/sourcemod/plugins/TF2EconTaunts.smx
Binary file not shown.
11 changes: 4 additions & 7 deletions addons/sourcemod/scripting/TF2EconTaunts.sp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define PLUGIN_NAME "[TF2] Econ Taunts"
#define PLUGIN_AUTHOR "x07x08"
#define PLUGIN_DESCRIPTION "A simple taunts menu plugin"
#define PLUGIN_VERSION "1.3.0"
#define PLUGIN_VERSION "1.3.1"
#define PLUGIN_URL "https://github.com/x07x08/TF2-Econ-Taunts"

#define DEFINDEX_UNDEFINED 65535
Expand Down Expand Up @@ -59,12 +59,7 @@ public Action CmdTaunt(int iClient, int iArgs)
Menu hMenu = new Menu(TauntMenuHandler);
hMenu.SetTitle("Taunts :");

static ArrayList hTauntsList = null;

if (hTauntsList == null)
{
hTauntsList = TF2Econ_GetItemList(FilterTaunts, TF2_GetPlayerClass(iClient));
}
ArrayList hTauntsList = TF2Econ_GetItemList(FilterTaunts, TF2_GetPlayerClass(iClient));

int iTauntListSize = hTauntsList.Length;

Expand All @@ -84,6 +79,8 @@ public Action CmdTaunt(int iClient, int iArgs)

hMenu.Display(iClient, MENU_TIME_FOREVER);

delete hTauntsList;

return Plugin_Handled;
}

Expand Down

0 comments on commit fd106a1

Please sign in to comment.