FixPointViewcontrol: fix error

This commit is contained in:
BotoX 2019-10-20 12:44:09 +02:00
parent 9baa71c599
commit d35a5d8b9a

View File

@ -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;