diff --git a/deps/teagba/src/gfx.cpp b/deps/teagba/src/gfx.cpp index cdce26cd..0fb2bf49 100644 --- a/deps/teagba/src/gfx.cpp +++ b/deps/teagba/src/gfx.cpp @@ -33,7 +33,7 @@ void applySpriteUpdates() noexcept { const unsigned updates = g_spriteUpdates; for (unsigned i = 0; i < updates; ++i) { const auto &oa = g_spriteBuffer[i]; - MEM_OAM[oa.idx] = *reinterpret_cast(&oa); + MEM_OAM[oa.idx] = std::bit_cast(oa); } g_spriteUpdates = 0; }