mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-06-07 19:32:09 +03:00
Fixed a crash when npc_helicopter that is awaiting input is killed (#419)
This commit is contained in:
parent
93efcbbcfd
commit
41945409d8
@ -4056,8 +4056,11 @@ void CNPC_AttackHelicopter::Event_Killed( const CTakeDamageInfo &info )
|
|||||||
|
|
||||||
m_lifeState = LIFE_DYING;
|
m_lifeState = LIFE_DYING;
|
||||||
|
|
||||||
CSoundEnvelopeController &controller = CSoundEnvelopeController::GetController();
|
if ( GetSleepState() != AISS_WAITING_FOR_INPUT )
|
||||||
controller.SoundChangeVolume( m_pGunFiringSound, 0.0, 0.1f );
|
{
|
||||||
|
CSoundEnvelopeController& controller = CSoundEnvelopeController::GetController();
|
||||||
|
controller.SoundChangeVolume( m_pGunFiringSound, 0.0, 0.1f );
|
||||||
|
}
|
||||||
|
|
||||||
if( GetCrashPoint() == NULL )
|
if( GetCrashPoint() == NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user