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)

(cherry picked from commit cdd843a998bfaa5028369a3fd6d5368bdc6ee568)
This commit is contained in:
Elias Ohm 2019-05-01 12:09:24 +02:00 committed by Michael Friedrich
parent 22fcdd868d
commit b623274918

View File

@ -159,7 +159,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();
}