We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aeaa2ec + 4767d07 commit eb437deCopy full SHA for eb437de
doomclassic/doom/i_sound_openal.cpp
@@ -969,8 +969,10 @@ bool I_LoadSong( const char * songname )
969
});
970
if (resIt != ::g->trackMaps.end()) {
971
lumpName = musType == 1 ? (*resIt)->MIDI : (*resIt)->Remixed;
972
- musFile = static_cast<unsigned char*>(W_LoadLumpName(lumpName));
973
- mus_size = W_LumpLength(W_CheckNumForName(lumpName.c_str()));
+ if (idStr::Cmp(lumpName, "")) {
+ musFile = static_cast<unsigned char*>(W_LoadLumpName(lumpName));
974
+ mus_size = W_LumpLength(W_CheckNumForName(lumpName.c_str()));
975
+ }
976
}
977
978
delete(md_buff);
0 commit comments