mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 13:31:33 +00:00
Prevent possible crash.
This commit is contained in:
parent
c14963d2c2
commit
53359b2d73
@ -400,6 +400,9 @@ void CGonome::HandleAnimEvent(MonsterEvent_t *pEvent)
|
||||
break;
|
||||
case GONOME_AE_SPIT:
|
||||
{
|
||||
if( m_hEnemy == 0 )
|
||||
return;
|
||||
|
||||
Vector vecSpitOffset;
|
||||
Vector vecSpitDir;
|
||||
|
||||
|
@ -497,6 +497,9 @@ void CPitDrone::HandleAnimEvent(MonsterEvent_t *pEvent)
|
||||
|
||||
case PIT_DRONE_AE_SPIT:
|
||||
{
|
||||
if( m_hEnemy == 0 )
|
||||
return;
|
||||
|
||||
spikes--;
|
||||
if( spikes < 0 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user