Clean up SFXSources in Player class

mMoveBubbleSound and mWaterBreathSound were not being deleted properly
This commit is contained in:
Lorne McIntosh 2013-05-26 22:53:48 -06:00
parent 66775714ef
commit f535147038

View file

@ -1763,6 +1763,12 @@ void Player::onRemove()
setControlObject(0);
scriptOnRemove();
removeFromScene();
if ( isGhost() )
{
SFX_DELETE( mMoveBubbleSound );
SFX_DELETE( mWaterBreathSound );
}
U32 i;
for( i=0; i<PlayerData::NUM_SPLASH_EMITTERS; i++ )