From cdd843a998bfaa5028369a3fd6d5368bdc6ee568 Mon Sep 17 00:00:00 2001 From: Elias Ohm Date: Wed, 1 May 2019 12:09:24 +0200 Subject: [PATCH] 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) --- lib/base/serializer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/serializer.cpp b/lib/base/serializer.cpp index 1b692d599..c081c440d 100644 --- a/lib/base/serializer.cpp +++ b/lib/base/serializer.cpp @@ -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(); } -- 2.40.0