Skip to content

Commit

Permalink
Crash bug fixes: Fast zombie torso missing precache and null ptr in s…
Browse files Browse the repository at this point in the history
…tunstick
  • Loading branch information
1upD committed Nov 2, 2019
1 parent 7b10c07 commit 683df06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions sp/src/game/server/hl2/npc_fastzombie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ void CFastZombie::Precache( void )
}

PrecacheModel( STRING( GetModelName() ) );
PrecacheModel( STRING( GetLivingTorsoModelName() ) );

BaseClass::Precache();
#else
Expand Down
2 changes: 1 addition & 1 deletion sp/src/game/shared/hl2mp/weapon_stunstick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ void C_WeaponStunStick::Simulate( void )
m_pStunstickLight->TurnOn();
}

if (GetOwner()->IsPlayer())
if ( GetOwner() != NULL && GetOwner()->IsPlayer() )
{
CBasePlayer *pPlayer = ToBasePlayer( GetOwner() );
if (pPlayer != NULL)
Expand Down

0 comments on commit 683df06

Please sign in to comment.