little extra safety

This commit is contained in:
Alug committed 2024-12-05 08:10:05 +01:00
1 parent 6fcc40748c
commit 8e48cd1b25
1 file changed
+1 -1
+1 -1
View File
@@ -2078,7 +2078,7 @@ void S_InitMapMusic(void)
{
char *maptitle = G_BuildMapTitle(gamemap);
// for some reason, occasionally the title screen music doesent seem to be reset in time, so skipping the intro may make it just continue playing it instead, weird..
skipintromus = (stricmp(music_name, "titles") != 0) && (stricmp(maptitle, "Wandering Falls") != 0); // thanks diggle!
skipintromus = (stricmp(music_name, "titles") != 0) && (maptitle && (stricmp(maptitle, "Wandering Falls") != 0)); // thanks diggle!
if (maptitle)
Z_Free(maptitle);
}