mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 14:25:32 +03:00
Fix crash with player use animations
This commit is contained in:
parent
a7c90b042d
commit
9b3977e30d
@ -1393,7 +1393,8 @@ Activity CHL2_Player::Weapon_TranslateActivity( Activity baseAct, bool *pRequire
|
||||
|
||||
#if EXPANDED_HL2DM_ACTIVITIES
|
||||
// +USE activities
|
||||
if ( m_hUseEntity && player_use_anim_enabled.GetBool() )
|
||||
// HACKHACK: Make sure m_hUseEntity is a pickup controller first
|
||||
if ( m_hUseEntity && m_hUseEntity->ClassMatches("player_pickup") && player_use_anim_enabled.GetBool())
|
||||
{
|
||||
CBaseEntity* pHeldEnt = GetPlayerHeldEntity( this );
|
||||
float flMass = pHeldEnt ?
|
||||
|
Loading…
Reference in New Issue
Block a user