Skip to content

Commit f297042

Browse files
nvm
1 parent b796e17 commit f297042

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Server/mods/deathmatch/logic/CMainConfig.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -901,15 +901,11 @@ bool CMainConfig::AddMissingSettings()
901901
for (auto it3 = templateAttributes.ListBegin(); it3 != templateAttributes.ListEnd(); ++it3)
902902
{
903903
CXMLAttribute* templateAttribute = *it3;
904-
const SString& attrName = templateAttribute->GetName();
905-
const SString& attrValue = templateAttribute->GetValue();
904+
const SString& strKey = templateAttribute->GetName();
905+
const SString& strValue = templateAttribute->GetValue();
906906

907-
// Don't check value attributes, as they are meant to be different
908-
if (attrName == "value")
909-
continue;
910-
911-
CXMLAttribute* foundAttribute = attributes.Find(attrName);
912-
if (!foundAttribute || foundAttribute->GetValue() != attrValue)
907+
CXMLAttribute* foundAttribute = attributes.Find(strKey);
908+
if (!foundAttribute || foundAttribute->GetValue() != strValue)
913909
{
914910
attributesMatch = false;
915911
break;

0 commit comments

Comments
 (0)