Permalink
Browse files

Fix a potential error

  • Loading branch information...
Bara committed Jun 8, 2018
1 parent 8de2a4b commit 842a50a1a901be85d61daec9d2bb87c29bb47ee2
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/sourcemod/scripting/ttt/ttt.sp
@@ -569,7 +569,7 @@ public int OnButtonPressed(const char[] output, int entity, int client, float de
return;
}
if (g_bPressed[entity])
if (IsValidEntity(entity) && g_bPressed[entity])
{
return;
}

0 comments on commit 842a50a

Please sign in to comment.