Ignore empty key localized strings.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Deukhoofd 2020-10-24 14:55:35 +02:00
parent bbd218d5fc
commit b0817fcad2
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ void LocalizationFile::LoadFile(const std::filesystem::path& path) {
std::stringstream linestream(line); std::stringstream linestream(line);
std::getline(linestream, key, sep); std::getline(linestream, key, sep);
std::getline(linestream, value, sep); std::getline(linestream, value, sep);
if (key.empty())
continue;
_map[key] = value; _map[key] = value;
} }
file.close(); file.close();