Browse Source

Small fix

Michael Ragazzon 6 years ago
parent
commit
8ed60b10d9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Core/PropertySpecification.cpp

+ 2 - 2
Source/Core/PropertySpecification.cpp

@@ -336,8 +336,8 @@ bool PropertySpecification::ParsePropertyDeclaration(PropertyDictionary& diction
 void PropertySpecification::SetPropertyDefaults(PropertyDictionary& dictionary) const
 {
 	for (auto& [id, value] : properties)
-		if (auto it = dictionary.find(id); it != dictionary.end())
-			it->second = *value->GetDefaultValue();
+		if (auto it = dictionary.find(id); it == dictionary.end())
+			dictionary[id] = *value->GetDefaultValue();
 }
 
 bool PropertySpecification::ParsePropertyValues(StringList& values_list, const String& values, bool split_values) const