mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-13 22:56:28 +00:00
S_FindMusicDef: Handle NULL/empty string explicitly
This commit is contained in:
parent
1f82285c39
commit
8e8c2273e9
1 changed files with 6 additions and 1 deletions
|
|
@ -1620,9 +1620,14 @@ boolean S_PlaysimMusicDisabled(void)
|
|||
//
|
||||
musicdef_t *S_FindMusicDef(const char *name, UINT8 *i)
|
||||
{
|
||||
UINT32 hash = quickncasehash (name, 6);
|
||||
UINT32 hash;
|
||||
musicdef_t *def;
|
||||
|
||||
if (!name || !name[0])
|
||||
return NULL;
|
||||
|
||||
hash = quickncasehash (name, 6);
|
||||
|
||||
for (def = musicdefstart; def; def = def->next)
|
||||
{
|
||||
for (*i = 0; *i < def->numtracks; (*i)++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue