mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Rather than a polymorphic downcast, just fill in the object in place.
This commit is contained in:
@@ -718,7 +718,8 @@ STArray* STArray::construct(SerializerIterator& sit, SField::ref field)
|
||||
if (fn.isInvalid())
|
||||
throw std::runtime_error("Unknown field");
|
||||
|
||||
value.push_back(*STObject::makeDeserializedObject(fn.fieldType, fn, sit, 1));
|
||||
value.push_back(STObject(fn));
|
||||
value.rbegin()->set(sit, 1);
|
||||
}
|
||||
|
||||
return new STArray(field, value);
|
||||
|
||||
Reference in New Issue
Block a user