mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-24 05:34:18 +00:00
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:
|
case BSQUID_AE_SPIT:
|
||||||
{
|
{
|
||||||
|
if( m_hEnemy == 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
Vector vecSpitOffset;
|
Vector vecSpitOffset;
|
||||||
Vector vecSpitDir;
|
Vector vecSpitDir;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user