fix alloc bug

This commit is contained in:
Matthew 2025-08-17 08:25:51 +10:00
parent 5580212469
commit 38e4e44b4d

View File

@ -37,7 +37,7 @@ MFree(T)(T* ptr)
void
MFreeArray(T)(T[] slice)
{
MemFree(cast(void*)slice.ptr, cast(u64)slice.length);
MemFree(cast(void*)slice.ptr, cast(u64)slice.length * T.sizeof);
}
T*