[Scummvm-git-logs] scummvm master -> 80c750a0a4bd03efa1b9111bfd4ab89f87c0721c

sev- noreply at scummvm.org
Fri Sep 2 12:31:26 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
80c750a0a4 GUI: Fix mass add crash with older ScummVM configs


Commit: 80c750a0a4bd03efa1b9111bfd4ab89f87c0721c
    https://github.com/scummvm/scummvm/commit/80c750a0a4bd03efa1b9111bfd4ab89f87c0721c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-09-02T14:30:44+02:00

Commit Message:
GUI: Fix mass add crash with older ScummVM configs

Changed paths:
    gui/massadd.cpp


diff --git a/gui/massadd.cpp b/gui/massadd.cpp
index 8a3cbb4cdbf..839e0027244 100644
--- a/gui/massadd.cpp
+++ b/gui/massadd.cpp
@@ -210,8 +210,8 @@ void MassAddDialog::handleTickle() {
 					// If the engineid, gameid, platform and language match -> skip it
 					Common::ConfigManager::Domain *dom = ConfMan.getDomain(*iter);
 					assert(dom);
-					
-					if ((*dom)["engineid"] == result.engineId &&
+
+					if ((!dom->contains("engineid") || (*dom)["engineid"] == result.engineId) &&
 						(*dom)["gameid"] == result.gameId &&
 					    dom->getValOrDefault("platform") == resultPlatformCode &&
 						parseLanguage(dom->getValOrDefault("language")) == parseLanguage(resultLanguageCode)) {




More information about the Scummvm-git-logs mailing list