mirror of https://github.com/FWGS/hlsdk-xash3d
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…
Reference in New Issue