Skip to content

Commit a8a4307

Browse files
authored
Revert changes to "Create" function
1 parent 1faa785 commit a8a4307

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FFXIVClientStructs/FFXIV/Client/System/Memory/IMemorySpace.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ public interface ICreatable {
99
[StructLayout(LayoutKind.Explicit, Size = 8)]
1010
public unsafe partial struct IMemorySpace {
1111
public T* Create<T>() where T : unmanaged, ICreatable {
12-
var memory = Calloc<T>(1);
12+
var memory = (T*)Malloc<T>();
1313
if (memory is null) return null;
14+
Memset(memory, 0, (ulong)sizeof(T));
1415
memory->Ctor();
1516
return memory;
1617
}

0 commit comments

Comments
 (0)