another small adjustment by the way just to ensure the object on stack ist the same as the one serialized further in case the object does not implement locking on mutation (besides it's mor efficient to not fetch the same value twice)

This commit is contained in:
Elias Ohm 2019-05-01 12:09:24 +02:00
parent 44ac6cf1ec
commit cdd843a998
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ static Object::Ptr SerializeObject(const Object::Ptr& input, int attributeTypes,
Value value = input->GetField(i);
stack.Push(field.Name, value);
fields.emplace_back(field.Name, SerializeInternal(input->GetField(i), attributeTypes, stack));
fields.emplace_back(field.Name, SerializeInternal(value, attributeTypes, stack));
stack.Pop();
}