diff --git a/gui/options.cpp b/gui/options.cpp index c152a3a2668..da9a5cecf50 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -183,8 +183,10 @@ void OptionsDialog::open() { _midiPopUp->setSelectedTag(id); } - if (_oplPopUp) - _oplPopUp->setSelectedTag(OPL::Config::parse(ConfMan.get("opl_driver", _domain))); + if (_oplPopUp) { + OPL::Config::DriverId id = MAX(OPL::Config::parse(ConfMan.get("opl_driver", _domain)), 0); + _oplPopUp->setSelectedTag(id); + } if (_outputRatePopUp) { _outputRatePopUp->setSelected(1);