]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
reduced number of GAME_NEXUIZ checks in the engine (added cl_sound and sv_sound cvars...
[xonotic/darkplaces.git] / snd_main.c
index 33918a36d44791e7fd8a6f5581814818f0fb24ae..186fc0e56836f9d46d1682258fe02ea2d5af7770 100644 (file)
@@ -416,6 +416,9 @@ sfx_t *S_PrecacheSound (const char *name, qboolean complain, qboolean lock)
        if (!snd_initialized.integer)
                return NULL;
 
+       if (name == NULL || name[0] == 0)
+               return NULL;
+
        sfx = S_FindName (name);
        if (sfx == NULL)
                return NULL;