diff --git a/deps/teagba/include/teagba/addresses.hpp b/deps/teagba/include/teagba/addresses.hpp index 6d3bf183..e84bc8bd 100644 --- a/deps/teagba/include/teagba/addresses.hpp +++ b/deps/teagba/include/teagba/addresses.hpp @@ -49,7 +49,7 @@ using BgCtl = uint16_t; #define REG_BG3CTL *reinterpret_cast(0x0400'000e) [[nodiscard]] -inline auto ®BgCtl(auto bgIdx) noexcept { +inline auto ®BgCtl(uintptr_t bgIdx) noexcept { return *reinterpret_cast(0x0400'0008 + 2 * bgIdx); }