From eed240eacc7e070b8769ed863a4c264bbc9141d2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 12 Nov 2023 01:26:19 -0600 Subject: [PATCH] [ox/mc] Fix test struct model, fix zeroing out of empty vectors in unions --- deps/ox/src/ox/mc/read.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {