From cf84166316cda67bc888ff1c3c3a15df6ea1d526 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 28 Apr 2021 00:40:34 +0200 Subject: [PATCH] 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. --- gui/massadd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/massadd.cpp b/gui/massadd.cpp index c7e39660476..c0ce120c530 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; }