Skip to content

Commit eb437de

Browse files
authored
Merge pull request #244 from MadDeCoDeR/frappedia
Merge latest commit by the Admin
2 parents aeaa2ec + 4767d07 commit eb437de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doomclassic/doom/i_sound_openal.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,10 @@ bool I_LoadSong( const char * songname )
969969
});
970970
if (resIt != ::g->trackMaps.end()) {
971971
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()));
972+
if (idStr::Cmp(lumpName, "")) {
973+
musFile = static_cast<unsigned char*>(W_LoadLumpName(lumpName));
974+
mus_size = W_LumpLength(W_CheckNumForName(lumpName.c_str()));
975+
}
974976
}
975977
}
976978
delete(md_buff);

0 commit comments

Comments
 (0)