mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +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;
|
||||
sfx_t *sfx;
|
||||
|
||||
if (!known_sfx)
|
||||
return 0;
|
||||
|
||||
// see if already loaded
|
||||
for (i = 0; i < num_sfx; i++)
|
||||
if (known_sfx[i].name && !strcmp (known_sfx[i].name, name)) {
|
||||
|
|
Loading…
Reference in a new issue