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

Commit fd106a1

Browse files
authored
Update 1.3.1
Reverted static Arraylist
1 parent c943d46 commit fd106a1

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
-10 Bytes
Binary file not shown.

addons/sourcemod/scripting/TF2EconTaunts.sp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define PLUGIN_NAME "[TF2] Econ Taunts"
88
#define PLUGIN_AUTHOR "x07x08"
99
#define PLUGIN_DESCRIPTION "A simple taunts menu plugin"
10-
#define PLUGIN_VERSION "1.3.0"
10+
#define PLUGIN_VERSION "1.3.1"
1111
#define PLUGIN_URL "https://github.com/x07x08/TF2-Econ-Taunts"
1212

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

62-
static ArrayList hTauntsList = null;
63-
64-
if (hTauntsList == null)
65-
{
66-
hTauntsList = TF2Econ_GetItemList(FilterTaunts, TF2_GetPlayerClass(iClient));
67-
}
62+
ArrayList hTauntsList = TF2Econ_GetItemList(FilterTaunts, TF2_GetPlayerClass(iClient));
6863

6964
int iTauntListSize = hTauntsList.Length;
7065

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

8580
hMenu.Display(iClient, MENU_TIME_FOREVER);
8681

82+
delete hTauntsList;
83+
8784
return Plugin_Handled;
8885
}
8986

0 commit comments

Comments
 (0)