segfault fix from ashridah

This commit is contained in:
Bill Currie 2004-01-26 01:21:06 +00:00
parent 767b0c61db
commit e763507c71
1 changed files with 3 additions and 0 deletions

View File

@ -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)) {