diff --git a/dlls/rp/gonome.cpp b/dlls/rp/gonome.cpp index e23b9715..fdf6dac3 100644 --- a/dlls/rp/gonome.cpp +++ b/dlls/rp/gonome.cpp @@ -400,6 +400,9 @@ void CGonome::HandleAnimEvent(MonsterEvent_t *pEvent) break; case GONOME_AE_SPIT: { + if( m_hEnemy == 0 ) + return; + Vector vecSpitOffset; Vector vecSpitDir; diff --git a/dlls/rp/pitdrone.cpp b/dlls/rp/pitdrone.cpp index 1c3553e7..996e941c 100644 --- a/dlls/rp/pitdrone.cpp +++ b/dlls/rp/pitdrone.cpp @@ -497,6 +497,9 @@ void CPitDrone::HandleAnimEvent(MonsterEvent_t *pEvent) case PIT_DRONE_AE_SPIT: { + if( m_hEnemy == 0 ) + return; + spikes--; if( spikes < 0 ) {