mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Fix null pointer deference
This commit is contained in:
parent
af5b38cbbd
commit
1bc5329185
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user