mirror of https://github.com/FWGS/hlsdk-xash3d
Fix possible null pointer dereference.
This commit is contained in:
parent
03d65581f4
commit
9f93606b50
|
@ -536,6 +536,9 @@ void CBullsquid::HandleAnimEvent( MonsterEvent_t *pEvent )
|
|||
{
|
||||
case BSQUID_AE_SPIT:
|
||||
{
|
||||
if( m_hEnemy == 0 )
|
||||
return;
|
||||
|
||||
Vector vecSpitOffset;
|
||||
Vector vecSpitDir;
|
||||
|
||||
|
|
Loading…
Reference in New Issue