more fixes for DSDHacked sprites and sounds

Fixes #1072
This commit is contained in:
Fabian Greffrath 2023-05-23 14:22:09 +02:00
parent 626e5629bc
commit 153dd9f650
2 changed files with 7 additions and 1 deletions

View File

@ -280,6 +280,7 @@ void dsdh_EnsureSFXCapacity(int limit)
S_sfx[i].priority = 127;
S_sfx[i].pitch = -1;
S_sfx[i].volume = -1;
S_sfx[i].lumpnum = -1;
}
}
}

View File

@ -191,7 +191,12 @@ void R_InitSpriteDefs(char **namelist)
for (i=0 ; i<num_sprites ; i++)
{
const char *spritename = namelist[i];
int j = hash[R_SpriteNameHash(spritename) % numentries].index;
int j;
if (!spritename)
break;
j = hash[R_SpriteNameHash(spritename) % numentries].index;
if (j >= 0)
{