From a2883cdf392f439a1755478e06575bf3923fe720 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 1 Oct 2019 00:11:05 +0200 Subject: [PATCH] - added missing return to the GENMIDI loader. --- src/sound/music/i_music.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sound/music/i_music.cpp b/src/sound/music/i_music.cpp index e43da3605..5a8d60722 100644 --- a/src/sound/music/i_music.cpp +++ b/src/sound/music/i_music.cpp @@ -225,7 +225,11 @@ static void SetupGenMidi() // 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. 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 genmidi = data.Read();