Prevent possible crash.

This commit is contained in:
Andrey Akhmichin 2022-11-16 10:20:23 +05:00
parent 627f182571
commit 799acbf753
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
1 changed files with 3 additions and 0 deletions

View File

@ -164,6 +164,9 @@ void CEinarMegasquid::HandleAnimEvent( MonsterEvent_t *pEvent )
{
case MSQUID_AE_SPIT:
{
if( m_hEnemy == 0 )
return;
Vector vecSpitOffset;
Vector vecSpitDir;