From 8e48cd1b2581a9b0e983b93eff271e5d620ea46d Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 5 Dec 2024 08:10:05 +0100 Subject: [PATCH] little extra safety --- src/s_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index 3d3c2bb27..3345343b1 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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); }