]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
changed DP_SMALLMEMORY compiles to use the standard NET_MAXMESSAGE value
[xonotic/darkplaces.git] / snd_main.c
index acfad510299b8c38f12cf341bd6a325a59c594f2..6bd0b361c93a4ce6bf4257248af1b8791dc7844e 100644 (file)
@@ -262,7 +262,7 @@ static void S_Play_Common (float fvol, float attenuation)
                        ch_ind = S_StartSound (-1, 0, sfx, listener_origin, fvol, attenuation);
 
                        // Free the sfx if the file didn't exist
-                       if (ch_ind < 0)
+                       if (!sfx->fetcher)
                                S_FreeSfx (sfx, false);
                        else
                                channels[ch_ind].flags |= CHANNELFLAG_LOCALSOUND;