From f273dcff1870549ae5e90645c5aa8d9fe447bc9b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 9 Jul 2025 20:04:52 +1000 Subject: [PATCH] GameList: Fix possible bad optional unwrap in ApplyCustomAttributes() --- src/core/game_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/game_list.cpp b/src/core/game_list.cpp index 60fdd6906..fc60ebafe 100644 --- a/src/core/game_list.cpp +++ b/src/core/game_list.cpp @@ -732,7 +732,7 @@ void GameList::ApplyCustomAttributes(const std::string& path, Entry* entry, } else { - WARNING_LOG("Invalid language '{}' in custom attributes for '{}'", custom_region_str.value(), path); + WARNING_LOG("Invalid language '{}' in custom attributes for '{}'", custom_language_str.value(), path); } } } @@ -1084,7 +1084,7 @@ void GameList::CreateDiscSetEntries(const std::vector& excluded_pat // already have a disc set by this name? const std::string& disc_set_name = entry.disc_set_name; - if (GetEntryForPath(disc_set_name.c_str())) + if (GetEntryForPath(disc_set_name)) continue; const GameDatabase::Entry* dbentry = GameDatabase::GetEntryForSerial(entry.serial);