- added missing return to the GENMIDI loader.

This commit is contained in:
Christoph Oelckers 2019-10-01 00:11:05 +02:00
parent 63f2bf7ae3
commit a2883cdf39

View file

@ -225,7 +225,11 @@ static void SetupGenMidi()
// The OPL renderer should not care about where this comes from. // The OPL renderer should not care about where this comes from.
// Note: No I_Error here - this needs to be consistent with the rest of the music code. // Note: No I_Error here - this needs to be consistent with the rest of the music code.
auto lump = Wads.CheckNumForName("GENMIDI", ns_global); auto lump = Wads.CheckNumForName("GENMIDI", ns_global);
if (lump < 0) Printf("No GENMIDI lump found. OPL playback not available."); if (lump < 0)
{
Printf("No GENMIDI lump found. OPL playback not available.");
return;
}
auto data = Wads.OpenLumpReader(lump); auto data = Wads.OpenLumpReader(lump);
auto genmidi = data.Read(); auto genmidi = data.Read();