From b12ac5d3b2b83d687b31bdaf416eeb7e38ad4372 Mon Sep 17 00:00:00 2001 From: spherallic Date: Wed, 2 Aug 2023 17:05:38 +0200 Subject: [PATCH] Handle empty/"-" music lump name on music change --- src/p_spec.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 2015bce76..10b44223a 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -2953,11 +2953,13 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha // Change the music and apply position/fade operations else { - if (!stringargs[0]) - break; - - strncpy(mapmusname, stringargs[0], 7); - mapmusname[6] = 0; + if (!stringargs[0] || fastcmp(stringargs[0], "-")) + strcpy(mapmusname, ""); + else + { + strncpy(mapmusname, stringargs[0], 7); + mapmusname[6] = 0; + } mapmusflags = tracknum & MUSIC_TRACKMASK;