File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Server/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments