found the missing retain

This commit is contained in:
Bill Currie 2007-03-18 10:45:29 +00:00 committed by Jeff Teunissen
parent b320778b92
commit 1315d4178f

View file

@ -347,10 +347,12 @@ s_updateAmbientSounds (void)
if (!chan)
continue;
if (!chan->sfx)
if (!chan->sfx) {
sfx = sfx->open (sfx);
else
sfx->retain (sfx);
} else {
sfx = chan->sfx;
}
// sfx will be written to chan->sfx later to ensure mixer doesn't use
// channel prematurely.