mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
found the missing retain
This commit is contained in:
parent
b320778b92
commit
1315d4178f
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue