mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-03 01:00:34 +03:00
Fix crash when objects are pulled with the gravity gun
This commit is contained in:
parent
ab6dbb860d
commit
7976a21b51
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user