From 69a2a781031e6f23b6554eab32697c6892587726 Mon Sep 17 00:00:00 2001 From: Garrett Smith Date: Sun, 18 Jan 2026 22:49:07 -0800 Subject: [PATCH] fix offset --- librecomp/include/librecomp/helpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librecomp/include/librecomp/helpers.hpp b/librecomp/include/librecomp/helpers.hpp index e51e68c..eb9f86f 100644 --- a/librecomp/include/librecomp/helpers.hpp +++ b/librecomp/include/librecomp/helpers.hpp @@ -39,7 +39,7 @@ T _arg(uint8_t* rdram, recomp_context* ctx) requires(index < 4) { template T _arg(uint8_t* rdram, recomp_context* ctx) requires(index >= 4) { - const auto raw_arg = MEM_W(0x10 + index * 4, ctx->r29); + const auto raw_arg = MEM_W(index * 4, ctx->r29); if constexpr (std::is_pointer_v) { static_assert (!std::is_pointer_v>, "Double pointers not supported"); return TO_PTR(std::remove_pointer_t, raw_arg);