Commit f5351470 authored by Lorne McIntosh's avatar Lorne McIntosh

Clean up SFXSources in Player class

mMoveBubbleSound and mWaterBreathSound were not being deleted properly
parent 66775714
......@@ -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++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment