- print an error when a sound file cannot be found.

This commit is contained in:
Christoph Oelckers 2023-01-21 14:51:43 +01:00
parent 33f0d229fa
commit dbef2f74d1

View file

@ -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);
}