Skip to content

Commit ee8ddbe

Browse files
authored
Merge pull request darkerz7#82 from Rushaway/84
fix(glow): Invalid entity check
2 parents 3207ed2 + b70566f commit ee8ddbe

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

addons/sourcemod/scripting/entwatch/module_glow.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ stock void EWM_Glow_GlowWeapon(class_ItemList ItemTest)
5858
{
5959
if(g_bGlow && g_bMapRunning)
6060
{
61+
if (!IsValidEntity(ItemTest.WeaponID))
62+
return;
63+
6164
SetEntProp(ItemTest.WeaponID, Prop_Send, "m_fEffects", GetEntProp(ItemTest.WeaponID, Prop_Send, "m_fEffects") & ~256);
6265
SetEntityRenderColor(ItemTest.WeaponID, 255, 255, 255, 255);
6366

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 "83"
7+
#define EW_V_MINOR "84"
88

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

0 commit comments

Comments
 (0)