From b0817fcad254a2345c773d9a577b57f2e8e1dd45 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 24 Oct 2020 14:55:35 +0200 Subject: [PATCH] Ignore empty key localized strings. --- src/LocalizationFile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LocalizationFile.cpp b/src/LocalizationFile.cpp index f5ff53b..134182a 100644 --- a/src/LocalizationFile.cpp +++ b/src/LocalizationFile.cpp @@ -31,6 +31,8 @@ void LocalizationFile::LoadFile(const std::filesystem::path& path) { std::stringstream linestream(line); std::getline(linestream, key, sep); std::getline(linestream, value, sep); + if (key.empty()) + continue; _map[key] = value; } file.close();