mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-04 11:04:28 +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);
|
Vector r = (pevInflictor->origin - pev->origin);
|
||||||
if ( (!m_attacker
|
if ( (!m_attacker
|
||||||
|| (pev->velocity.Length() < 700))
|
|| (pev->velocity.Length() < 700)) && ((CBaseEntity*)GET_PRIVATE(ENT(pevAttacker)))
|
||||||
&& ((CBaseEntity*)GET_PRIVATE(ENT(pevAttacker)))->IsPlayer())
|
&& ((CBaseEntity*)GET_PRIVATE(ENT(pevAttacker)))->IsPlayer())
|
||||||
m_attacker.Set(ENT(pevAttacker));
|
m_attacker.Set(ENT(pevAttacker));
|
||||||
DeployThink();
|
DeployThink();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user