mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
One more.
This commit is contained in:
parent
c53f2903a8
commit
05c33409a1
1 changed files with 8 additions and 2 deletions
|
@ -3222,7 +3222,10 @@ void CAI_BaseNPC::UpdateEfficiency( bool bInPVS )
|
|||
}
|
||||
}
|
||||
|
||||
iSound = pCurrentSound->NextSound();
|
||||
if (pCurrentSound)
|
||||
iSound = pCurrentSound->NextSound();
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3409,7 +3412,10 @@ void CAI_BaseNPC::UpdateSleepState( bool bInPVS )
|
|||
break;
|
||||
}
|
||||
|
||||
iSound = pCurrentSound->NextSound();
|
||||
if (pCurrentSound)
|
||||
iSound = pCurrentSound->NextSound();
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue