make sure we don't access snd after stopping

This commit is contained in:
Glenn Maynard
2005-01-05 00:03:00 +00:00
parent 4fbd89dd7d
commit 67c1e5c6fb
@@ -270,6 +270,7 @@ void RageSound_Generic_Software::Update(float delta)
// LOG->Trace("finishing sound %i", i);
sounds[i].snd->SoundIsFinishedPlaying();
sounds[i].snd = NULL;
/* This sound is done. Set it to HALTING, since the mixer thread might
* be accessing it; it'll change it back to STOPPED once it's ready to