mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix the segfault on starting a map only to die from file handle starvation :P
This commit is contained in:
parent
714bd341fc
commit
efe9dd844f
1 changed files with 4 additions and 0 deletions
|
@ -523,6 +523,10 @@ SND_UpdateAmbientSounds (void)
|
|||
for (ambient_channel = 0; ambient_channel < NUM_AMBIENTS;
|
||||
ambient_channel++) {
|
||||
chan = &channels[ambient_channel];
|
||||
if (!ambient_sfx[ambient_channel]) {
|
||||
chan->sfx = 0;
|
||||
continue;
|
||||
}
|
||||
chan->sfx = ambient_sfx[ambient_channel]->open (ambient_sfx[ambient_channel]);
|
||||
|
||||
vol = ambient_level->value * l->ambient_sound_level[ambient_channel];
|
||||
|
|
Loading…
Reference in a new issue