From d7fa08f44c83a877f0c84910ea5660c249e5bb7f Mon Sep 17 00:00:00 2001 From: BotoX Date: Fri, 1 Nov 2019 01:16:30 +0100 Subject: [PATCH] SetOwner: DHookIsNullParam --- SetOwner/scripting/SetOwner.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SetOwner/scripting/SetOwner.sp b/SetOwner/scripting/SetOwner.sp index 402943fa..719d272e 100644 --- a/SetOwner/scripting/SetOwner.sp +++ b/SetOwner/scripting/SetOwner.sp @@ -54,6 +54,9 @@ public MRESReturn Hook_AcceptInput(int iEntity, 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;