2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-26 06:22:07 +00:00

Use ZoneState to check whether localize key is duplicated

This commit is contained in:
Jan
2023-12-31 12:28:13 +01:00
parent e4cfda73dc
commit 196e2edd8a
13 changed files with 59 additions and 15 deletions

View File

@@ -33,7 +33,7 @@ void SequenceLocalizeFileLanguageValue::ProcessMatch(LocalizeFileParserState* st
if (langName == state->m_language_name_caps)
{
const auto& currentReference = state->m_current_reference;
if (const auto i = state->m_entries.find(currentReference); i != state->m_entries.end())
if (!state->m_zone_state->DoLocalizeEntryDuplicateCheck(currentReference))
{
std::cout << "Localize: a value for reference \"" << currentReference << "\" was already defined\n";
}