Skip to content

Commit 7976a21

Browse files
committed
Fix crash when objects are pulled with the gravity gun
1 parent ab6dbb8 commit 7976a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp/src/game/server/hl2/weapon_physcannon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ CWeaponPhysCannon::FindObjectResult_t CWeaponPhysCannon::FindObject( void )
27582758
pullDir *= (mass + 0.5) * (1/50.0f);
27592759
}
27602760

2761-
CPhysicsProp* pProp = dynamic_cast<CPhysicsProp*>(pObj);
2761+
CPhysicsProp* pProp = dynamic_cast<CPhysicsProp*>(pEntity);
27622762
if (pProp) {
27632763
pProp->OnPhysGunPull( pOwner );
27642764
}

0 commit comments

Comments
 (0)