diff --git a/Include/Aurora/Memory/Heap.hpp b/Include/Aurora/Memory/Heap.hpp index aea41196..b4d93dea 100644 --- a/Include/Aurora/Memory/Heap.hpp +++ b/Include/Aurora/Memory/Heap.hpp @@ -89,9 +89,9 @@ namespace Aurora::Memory } template - AuSPtr NewClass(T &ref, Args &&...args) + AuSPtr NewClass(Args &&...args) { - void * pPtr; + void *pPtr; if constexpr (AuIsClass_v) { @@ -111,7 +111,7 @@ namespace Aurora::Memory return {}; } - return ToSmartPointer(pPtr, true); + return ToSmartPointer((T *)pPtr, true); }