Fix crash when objects are pulled with the gravity gun

This commit is contained in:
ALLEN-PC\acj30 2025-01-18 10:02:53 -06:00 committed by Blixibon
parent ab6dbb860d
commit 7976a21b51

View File

@ -2758,7 +2758,7 @@ CWeaponPhysCannon::FindObjectResult_t CWeaponPhysCannon::FindObject( void )
pullDir *= (mass + 0.5) * (1/50.0f);
}
CPhysicsProp* pProp = dynamic_cast<CPhysicsProp*>(pObj);
CPhysicsProp* pProp = dynamic_cast<CPhysicsProp*>(pEntity);
if (pProp) {
pProp->OnPhysGunPull( pOwner );
}