Fix null pointer deference

This commit is contained in:
mittorn 2016-07-17 20:11:00 +00:00
parent af5b38cbbd
commit 1bc5329185
1 changed files with 1 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ int CProp::TakeDamage(entvars_t* pevInflictor, entvars_t* pevAttacker, float flD
{
Vector r = (pevInflictor->origin - pev->origin);
if ( (!m_attacker
|| (pev->velocity.Length() < 700))
|| (pev->velocity.Length() < 700)) && ((CBaseEntity*)GET_PRIVATE(ENT(pevAttacker)))
&& ((CBaseEntity*)GET_PRIVATE(ENT(pevAttacker)))->IsPlayer())
m_attacker.Set(ENT(pevAttacker));
DeployThink();