diff --git a/deps/ox/src/ox/mc/read.hpp b/deps/ox/src/ox/mc/read.hpp index 80de4469..e2c8c20a 100644 --- a/deps/ox/src/ox/mc/read.hpp +++ b/deps/ox/src/ox/mc/read.hpp @@ -276,8 +276,8 @@ constexpr Error MetalClawReaderTemplate::field(const char *name, T *val) val->resize(len); return field(name, val->data(), val->size()); } + val->resize(0); } - val->resize(0); ++m_field; return {}; } else if constexpr(isArray_v) {