fix: MemoryHelper.Write crash the game

Missing parameters cause the overload not to be called correctly, resulting in an infinite loop once called.
This commit is contained in:
Gamous 2022-09-06 13:02:22 +08:00 committed by GitHub
parent 49793a1f17
commit 51fff9d724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -364,7 +364,7 @@ namespace Dalamud.Memory
/// <param name="memoryAddress">The memory address to read from.</param>
/// <param name="item">The item to write to the address.</param>
public static void Write<T>(IntPtr memoryAddress, T item) where T : unmanaged
=> Write(memoryAddress, item);
=> Write(memoryAddress, item, false);
/// <summary>
/// Writes a generic type to a specified memory address.