diff --git a/source/core/music/s_advsound.cpp b/source/core/music/s_advsound.cpp index 7e4ffb4b6..679ad2716 100644 --- a/source/core/music/s_advsound.cpp +++ b/source/core/music/s_advsound.cpp @@ -149,6 +149,7 @@ static FSoundID S_AddSound(const char* logicalname, int lumpnum, FScanner* sc) FSoundID S_AddSound(const char* logicalname, const char* lumpname, FScanner* sc) { int lump = fileSystem.CheckNumForFullName(lumpname, true, ns_sounds); + if (lump == -1) sc->ScriptMessage("%s: sound file not found"); return S_AddSound(logicalname, lump, sc); }