diff --git a/src/nostalgia/core/gba/gfx.cpp b/src/nostalgia/core/gba/gfx.cpp index fac4f9c8..c0496a3b 100644 --- a/src/nostalgia/core/gba/gfx.cpp +++ b/src/nostalgia/core/gba/gfx.cpp @@ -44,7 +44,7 @@ struct GbaTileMapTarget { }; constexpr ox::Error model(auto *io, ox::CommonPtrWith auto *t) noexcept { - io->template setTypeInfo(); + oxReturnError(io->template setTypeInfo()); const auto colorHandler = [t](std::size_t i, const Color16 *c) { t->palette[i] = *c; return OxError(0); @@ -53,7 +53,7 @@ constexpr ox::Error model(auto *io, ox::CommonPtrWith auto *t) } constexpr ox::Error model(auto *io, ox::CommonPtrWith auto *t) noexcept { - io->template setTypeInfo(); + oxReturnError(io->template setTypeInfo()); oxReturnError(io->field("bpp", &t->cbbData->bpp)); oxReturnError(io->field("defaultPalette", &t->defaultPalette)); uint16_t intermediate = 0;