From d67fcd3887136d8a67b633c78958d59f4e1e86ed Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Sep 2019 00:23:49 +0200 Subject: [PATCH] - missed an 'else'. --- src/sound/mididevices/midi_cvars.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/mididevices/midi_cvars.cpp b/src/sound/mididevices/midi_cvars.cpp index ab50a1d2f..fdd37d9b0 100644 --- a/src/sound/mididevices/midi_cvars.cpp +++ b/src/sound/mididevices/midi_cvars.cpp @@ -96,7 +96,7 @@ CUSTOM_CVAR(String, adl_custom_bank, "", CVAR_ARCHIVE | CVAR_GLOBALCONFIG) //Resolve the path here, so that the renderer does not have to do the work itself and only needs to process final names. auto info = sfmanager.FindSoundFont(self, SF_WOPL); if (info == nullptr) adlConfig.adl_custom_bank = nullptr; - adlConfig.adl_custom_bank = info->mFilename; + else adlConfig.adl_custom_bank = info->mFilename; } CUSTOM_CVAR(Int, adl_volume_model, ADLMIDI_VolumeModel_DMX, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)