1
0
Fork 0

Small change to avoid dangling audio resources.

This commit is contained in:
curt 2006-01-10 14:51:12 +00:00
parent 5329ed10a7
commit 311b85a11d

View file

@ -139,8 +139,9 @@ FGFX::update (double dt)
// still playing, do nothing
is_playing = true;
} else {
// current message finished, remove
smgr->remove( msgid );
// current message finished, stop and remove
smgr->stop( msgid ); // removes source
smgr->remove( msgid ); // removes buffer
}
}
if ( !is_playing ) {