GameList: Fix crash loading custom language options

This commit is contained in:
Stenzek 2024-11-29 13:17:07 +10:00
parent 6be242449b
commit 3ed6cc2ba8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ void GameList::ApplyCustomAttributes(const std::string& path, Entry* entry,
if (custom_language_str.has_value())
{
const std::optional<GameDatabase::Language> custom_region =
GameDatabase::ParseLanguageName(custom_region_str.value());
GameDatabase::ParseLanguageName(custom_language_str.value());
if (custom_region.has_value())
{
entry->custom_language = custom_region.value();