[ox/mc] Fix test struct model, fix zeroing out of empty vectors in unions

This commit is contained in:
Gary Talent 2023-11-12 01:26:19 -06:00
parent cc7c7ac9d7
commit eed240eacc

View File

@ -276,8 +276,8 @@ constexpr Error MetalClawReaderTemplate<Reader>::field(const char *name, T *val)
val->resize(len); val->resize(len);
return field(name, val->data(), val->size()); return field(name, val->data(), val->size());
} }
val->resize(0);
} }
val->resize(0);
++m_field; ++m_field;
return {}; return {};
} else if constexpr(isArray_v<T>) { } else if constexpr(isArray_v<T>) {