mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
segfault fix from ashridah
This commit is contained in:
parent
767b0c61db
commit
e763507c71
1 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,9 @@ s_load_sound (const char *name)
|
||||||
int i;
|
int i;
|
||||||
sfx_t *sfx;
|
sfx_t *sfx;
|
||||||
|
|
||||||
|
if (!known_sfx)
|
||||||
|
return 0;
|
||||||
|
|
||||||
// see if already loaded
|
// see if already loaded
|
||||||
for (i = 0; i < num_sfx; i++)
|
for (i = 0; i < num_sfx; i++)
|
||||||
if (known_sfx[i].name && !strcmp (known_sfx[i].name, name)) {
|
if (known_sfx[i].name && !strcmp (known_sfx[i].name, name)) {
|
||||||
|
|
Loading…
Reference in a new issue