[ox/mc] Fix read to resize Vectors before writing to them
This commit is contained in:
3
deps/ox/src/ox/model/walk.hpp
vendored
3
deps/ox/src/ox/model/walk.hpp
vendored
@@ -86,7 +86,8 @@ static ox::Error parseField(const DescriptorField &field, Reader *rdr, DataWalke
|
||||
walker->pushNamePath(field.fieldName);
|
||||
if (field.subscriptLevels) {
|
||||
// add array handling
|
||||
const auto arrayLen = rdr->arrayLength(true);
|
||||
const auto [arrayLen, err] = rdr->arrayLength(true);
|
||||
oxReturnError(err);
|
||||
auto child = rdr->child();
|
||||
child.setTypeInfo(field.fieldName.c_str(), arrayLen);
|
||||
DescriptorField f(field); // create mutable copy
|
||||
|
Reference in New Issue
Block a user