From 1cdc49b212cbbbd09d59178cff70128dd260b416 Mon Sep 17 00:00:00 2001 From: Sean Lewis Date: Tue, 20 Mar 2018 20:54:10 -0700 Subject: [PATCH] Fix error spamming on plugin loadings. --- scripting/practicemode/bots.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripting/practicemode/bots.sp b/scripting/practicemode/bots.sp index 961d718..66cee17 100644 --- a/scripting/practicemode/bots.sp +++ b/scripting/practicemode/bots.sp @@ -543,6 +543,9 @@ public Action Timer_ResetCollisions(Handle timer, DataPack pack) { pack.Reset(); int client1 = pack.ReadCell(); int client2 = pack.ReadCell(); + if (!IsValidClient(client1) || !IsValidClient(client2)) { + return Plugin_Handled; + } if (DoPlayersCollide(client1, client2)) { return Plugin_Continue;