Skip to content

Commit

Permalink
Fix a potential error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Jun 8, 2018
1 parent 8de2a4b commit 842a50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/ttt/ttt.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 842a50a

Please sign in to comment.