mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Prevent possible crash.
This commit is contained in:
parent
5bb0f8ead5
commit
0e6b06df5a
@ -418,7 +418,7 @@ void CGonome::HandleAnimEvent(MonsterEvent_t *pEvent)
|
||||
|
||||
vecSpitOffset = vecArmPos;
|
||||
UTIL_BloodDrips( vecSpitOffset, UTIL_RandomBloodVector(), BLOOD_COLOR_RED, 35 );
|
||||
if( pEvent->event == GONOME_AE_THROW )
|
||||
if( pEvent->event == GONOME_AE_THROW && m_hEnemy != 0 )
|
||||
{
|
||||
vecSpitDir = ((m_hEnemy->pev->origin + m_hEnemy->pev->view_ofs) - vecSpitOffset).Normalize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user