[Scummvm-git-logs] scummvm master -> cf84166316cda67bc888ff1c3c3a15df6ea1d526

sev- sev at scummvm.org
Tue Apr 27 22:41:55 UTC 2021


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:
cf84166316 GUI: Fix assert in GUI during MasAdd


Commit: cf84166316cda67bc888ff1c3c3a15df6ea1d526
    https://github.com/scummvm/scummvm/commit/cf84166316cda67bc888ff1c3c3a15df6ea1d526
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-04-28T00:41:35+02:00

Commit Message:
GUI: Fix assert in GUI during MasAdd

If there is an entry without language specified, this would lead
to an assert. Yet another consequences of HashMap rewrite. Sigh.

Changed paths:
    gui/massadd.cpp


diff --git a/gui/massadd.cpp b/gui/massadd.cpp
index c7e3966047..c0ce120c53 100644
--- a/gui/massadd.cpp
+++ b/gui/massadd.cpp
@@ -213,7 +213,7 @@ void MassAddDialog::handleTickle() {
 					if ((*dom)["engineid"] == result.engineId &&
 						(*dom)["gameid"] == result.gameId &&
 					    (*dom)["platform"] == resultPlatformCode &&
-					    (*dom)["language"] == resultLanguageCode) {
+					    dom->getValOrDefault("language") == resultLanguageCode) {
 						duplicate = true;
 						break;
 					}




More information about the Scummvm-git-logs mailing list