aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 7ea5344ba2..a668c453d4 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -345,7 +345,7 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
// If we received an invalid music parameter via command line we check this here.
// We can't check this before loading the music plugins.
// On the other hand we cannot load the plugins before we know the file paths (in case of external plugins).
- if (!settings["music-driver"].empty()) {
+ if (settings.contains("music-driver")) {
if (MidiDriver::getMusicType(MidiDriver::getDeviceHandle(settings["music-driver"])) == MT_NULL) {
warning("Unrecognized music driver '%s'\nSwitching to default device.", settings["music-driver"].c_str());
settings["music-driver"] = "auto";