diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp index 8d963d46b..d75eef2a2 100644 --- a/soh/soh/OTRGlobals.cpp +++ b/soh/soh/OTRGlobals.cpp @@ -867,6 +867,11 @@ extern "C" void ResourceMgr_PatchGfxByName(const char* path, const char* patchNa } }*/ + // Index refers to individual gfx words, which are half the size on 32-bit + if (sizeof(uintptr_t) < 8) { + index /= 2; + } + Gfx* gfx = (Gfx*)&res->instructions[index]; if (!originalGfx.contains(path) || !originalGfx[path].contains(patchName)) {