[ox] GBA fixes

This commit is contained in:
2023-02-03 21:56:30 -06:00
parent 535480ef26
commit b1b2780eb9
4 changed files with 17 additions and 2 deletions

View File

@@ -342,7 +342,7 @@ constexpr Error MetalClawWriter::field(const char*, T *val, std::size_t len) noe
MetalClawWriter writer(m_buff + m_buffIt, m_buffLen - m_buffIt);
ModelHandlerInterface handler{&writer};
handler.setTypeInfo<T>("List", 0, {}, len);
handler.setTypeInfo<T>("List", 0, {}, static_cast<int>(len));
// write the array
for (std::size_t i = 0; i < len; i++) {