summaryrefslogtreecommitdiff
path: root/src/KingSystem
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem')
-rw-r--r--src/KingSystem/Physics/RigidBody/Shape/physCapsuleShape.cpp3
1 files changed, 2 insertions, 1 deletions
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 <heap/seadHeap.h>
#include <math/seadMathCalcCommon.h>
#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<hkpCapsuleShape>(heap);
if (ptr == nullptr)
return nullptr;