diff --git a/src/KingSystem/Physics/RigidBody/Shape/physCapsuleShape.cpp b/src/KingSystem/Physics/RigidBody/Shape/physCapsuleShape.cpp index 99c71ddc..55ad7237 100644 --- a/src/KingSystem/Physics/RigidBody/Shape/physCapsuleShape.cpp +++ b/src/KingSystem/Physics/RigidBody/Shape/physCapsuleShape.cpp @@ -3,6 +3,7 @@ #include #include #include "KingSystem/Physics/physConversions.h" +#include "KingSystem/Utils/HeapUtil.h" namespace ksys::phys { @@ -21,7 +22,7 @@ void CapsuleShape::setMaterialMask(const MaterialMask& mask) { } CapsuleShape* CapsuleShapeParam::createShape(sead::Heap* heap) { - void* ptr = heap->tryAlloc(sizeof(hkpCapsuleShape), 0x10); + void* ptr = util::allocStorage(heap); if (ptr == nullptr) return nullptr;