From d35a5d8b9a89b899d09784e11506841b4efefc53 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 20 Oct 2019 12:44:09 +0200 Subject: [PATCH] FixPointViewcontrol: fix error --- FixPointViewcontrol/scripting/FixPointViewcontrol.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FixPointViewcontrol/scripting/FixPointViewcontrol.sp b/FixPointViewcontrol/scripting/FixPointViewcontrol.sp index 8cf26055..222bf85b 100644 --- a/FixPointViewcontrol/scripting/FixPointViewcontrol.sp +++ b/FixPointViewcontrol/scripting/FixPointViewcontrol.sp @@ -78,6 +78,9 @@ public MRESReturn Hook_AcceptInput(int entity, Handle hReturn, Handle hParams) char sCommand[128]; DHookGetParamString(hParams, 1, sCommand, sizeof(sCommand)); + if(DHookIsNullParam(hParams, 2)) + return MRES_Ignored; + int iActivator = DHookGetParam(hParams, 2); if (iActivator < 1 || iActivator > MaxClients) return MRES_Ignored;