From fbc84217530221a6e3d465876ac1b5b09d12c351 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Sun, 14 Mar 2021 13:28:24 +0100 Subject: [PATCH] add a dummy entry to the S_music[] array for the NUMMUSIC counter This fixes a crash when changing music from a MUSINFO track. --- Source/sounds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/sounds.c b/Source/sounds.c index ba574d50..8a4bf9cc 100644 --- a/Source/sounds.c +++ b/Source/sounds.c @@ -106,6 +106,7 @@ musicinfo_t S_music[] = { { "read_m", 0 }, { "dm2ttl", 0 }, { "dm2int", 0 }, + { NULL, 0 }, // NUMMUSIC { "musinfo", 0 } };