FixVPhysicsCrush: fix plugin error
This commit is contained in:
parent
3cd5e45ee9
commit
c52752211c
@ -93,6 +93,9 @@ public void OnEntityCreated(int entity, const char[] classname)
|
|||||||
|
|
||||||
public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams)
|
public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams)
|
||||||
{
|
{
|
||||||
|
if(!IsValidEntity(entity))
|
||||||
|
return;
|
||||||
|
|
||||||
char sCommand[128];
|
char sCommand[128];
|
||||||
DHookGetParamString(hParams, 1, sCommand, sizeof(sCommand));
|
DHookGetParamString(hParams, 1, sCommand, sizeof(sCommand));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user