From ba7c266f89af0dde5fe157915094cd43fd29a062 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 18 Jul 2019 01:25:29 +0000 Subject: [PATCH] CON_MUSIC: Accept "." as meaning "do nothing to this slot" git-svn-id: https://svn.eduke32.com/eduke32@7801 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamedef.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index ef4fb1a2c..6c68316bd 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -2016,6 +2016,9 @@ void C_DefineMusic(int volumeNum, int levelNum, const char *fileName) Bassert((unsigned)volumeNum < MAXVOLUMES+1); Bassert((unsigned)levelNum < MAXLEVELS); + if (strcmp(fileName, "/.") == 0) + return; + map_t *const pMapInfo = &g_mapInfo[(MAXLEVELS*volumeNum)+levelNum]; Xfree(pMapInfo->musicfn);