GUI: Fix mass add crash with older ScummVM configs
This commit is contained in:
parent
9bbdec165c
commit
80c750a0a4
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ void MassAddDialog::handleTickle() {
|
||||||
// If the engineid, gameid, platform and language match -> skip it
|
// If the engineid, gameid, platform and language match -> skip it
|
||||||
Common::ConfigManager::Domain *dom = ConfMan.getDomain(*iter);
|
Common::ConfigManager::Domain *dom = ConfMan.getDomain(*iter);
|
||||||
assert(dom);
|
assert(dom);
|
||||||
|
|
||||||
if ((*dom)["engineid"] == result.engineId &&
|
if ((!dom->contains("engineid") || (*dom)["engineid"] == result.engineId) &&
|
||||||
(*dom)["gameid"] == result.gameId &&
|
(*dom)["gameid"] == result.gameId &&
|
||||||
dom->getValOrDefault("platform") == resultPlatformCode &&
|
dom->getValOrDefault("platform") == resultPlatformCode &&
|
||||||
parseLanguage(dom->getValOrDefault("language")) == parseLanguage(resultLanguageCode)) {
|
parseLanguage(dom->getValOrDefault("language")) == parseLanguage(resultLanguageCode)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue