Skip to content

Commit

Permalink
- print an error when a sound file cannot be found.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 21, 2023
1 parent 33f0d22 commit dbef2f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/core/music/s_advsound.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit dbef2f7

Please sign in to comment.