Return null in S_FindMusicCredit if there are no musicdefs at all (thanks NepDisk for pointing at that)

This commit is contained in:
indev committed 2023-08-29 10:32:35 +03:00
1 parent d577944143
commit daa747805d
1 file changed
+1 -1
+1 -1
View File
@@ -1527,7 +1527,7 @@ musicdef_t *S_FindMusicCredit(const char *musname)
musicdef_t *def = musicdefstart;
if (!def) // No definitions
return;
return NULL;
while (def)
{