Skip to content

Commit daf328c

Browse files
RushawayDolly132
andcommitted
fix(api): check weapons in EntWatch_IsSpecialItem
Co-Authored-By: Dolly132 <109222243+dolly132@users.noreply.github.com>
1 parent 4f90e94 commit daf328c

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

addons/sourcemod/scripting/entwatch/module_natives.inc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@ public int EWM_Natives_Native_IsSpecialItem(Handle hPlugin, int iArgC)
174174
{
175175
class_ItemList ItemTest;
176176
g_ItemList.GetArray(i, ItemTest, sizeof(ItemTest));
177-
for(int j = 0; j < ItemTest.ButtonsArray.Length; j++)
178-
{
179-
if(ItemTest.ButtonsArray.Get(j) == iEntity) return true;
180-
}
177+
if (ItemTest.WeaponID == iEntity) return true;
181178
}
182179
183180
return false;

addons/sourcemod/scripting/include/EntWatch.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define _EntWatch_include
55

66
#define EW_V_MAJOR "3"
7-
#define EW_V_MINOR "86"
7+
#define EW_V_MINOR "87"
88

99
#define EW_VERSION EW_V_MAJOR...".DZ."...EW_V_MINOR
1010

0 commit comments

Comments
 (0)