diff --git a/src/Internal/Allocators/MemoryAllocator.cs b/src/Internal/Allocators/MemoryAllocator.cs index 4f71627..8828357 100644 --- a/src/Internal/Allocators/MemoryAllocator.cs +++ b/src/Internal/Allocators/MemoryAllocator.cs @@ -86,7 +86,7 @@ namespace DCFApixels.DragonECS.Core.Internal #endregion #region ReallocAndInit - public static HMem ReallocAndInit(void* target, int oldCount, int newCount) where T : unmanaged + public static HMem ReallocAndInit(T* target, int oldCount, int newCount) where T : unmanaged { return ReallocAndInit(Handler.FromDataPtr(target), oldCount, newCount); } @@ -117,7 +117,7 @@ namespace DCFApixels.DragonECS.Core.Internal #endregion #region Realloc - public static HMem Realloc(void* target, int newCount) where T : unmanaged + public static HMem Realloc(T* target, int newCount) where T : unmanaged { return Realloc(Handler.FromDataPtr(target), Marshal.SizeOf() * newCount); }