fix bugs?

This commit is contained in:
BotoX
2019-10-05 16:22:38 +02:00
parent 534fc75113
commit 617e2c4963
3 changed files with 4 additions and 4 deletions
@@ -102,7 +102,7 @@ public MRESReturn OnAcceptInput(int entity, Handle hReturn, Handle hParams)
if(StrEqual(sCommand, "Activate", false))
{
int attachedObject = GetEntPropEnt(entity, Prop_Data, "m_attachedObject");
if(attachedObject)
if(attachedObject != INVALID_ENT_REFERENCE)
{
int vphysObj = GetVPhysicsObject(attachedObject);
if(vphysObj)