From 799acbf75301d5367ca708d9e9dc728eff17753b Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Wed, 16 Nov 2022 10:20:23 +0500 Subject: [PATCH] Prevent possible crash. --- dlls/hunger/megasquid.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/hunger/megasquid.cpp b/dlls/hunger/megasquid.cpp index 8ce6c097..013b52ba 100644 --- a/dlls/hunger/megasquid.cpp +++ b/dlls/hunger/megasquid.cpp @@ -164,6 +164,9 @@ void CEinarMegasquid::HandleAnimEvent( MonsterEvent_t *pEvent ) { case MSQUID_AE_SPIT: { + if( m_hEnemy == 0 ) + return; + Vector vecSpitOffset; Vector vecSpitDir;