From 0f7f68b0e8c1dddd5642c50c901e0f48501b09c9 Mon Sep 17 00:00:00 2001 From: Narr the Reg <5944268+german77@users.noreply.github.com> Date: Thu, 23 Jul 2026 18:59:04 -0600 Subject: [PATCH] container: Fix ObjArray::setBuffer --- include/container/seadObjArray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/container/seadObjArray.h b/include/container/seadObjArray.h index a6759a85..2033e7a7 100644 --- a/include/container/seadObjArray.h +++ b/include/container/seadObjArray.h @@ -58,7 +58,7 @@ class ObjArray : public PtrArrayImpl } mFreeList.setWork(buf, ElementSize, max_num); - PtrArrayImpl::setBuffer(max_num, reinterpret_cast(buf) + ElementSize * max_num); + PtrArrayImpl::setBuffer(max_num, PtrUtil::addOffset(buf, ElementSize * max_num)); } void freeBuffer()