From adda3c0bb404e30454ac31f198a7bead1688f4f6 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 25 May 2020 08:42:35 -0700 Subject: [PATCH] Fix villager origin check Closes #252 --- NHSE.Core/Structures/Villager/GSaveMemory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NHSE.Core/Structures/Villager/GSaveMemory.cs b/NHSE.Core/Structures/Villager/GSaveMemory.cs index df78b77..b60a692 100644 --- a/NHSE.Core/Structures/Villager/GSaveMemory.cs +++ b/NHSE.Core/Structures/Villager/GSaveMemory.cs @@ -23,7 +23,7 @@ public string TownName get => StringUtil.GetString(Data, 0x04, 10); set => StringUtil.GetBytes(value, 10).CopyTo(Data, 0x04); } - public byte[] GetTownIdentity() => Data.Slice(0x00, 20); + public byte[] GetTownIdentity() => Data.Slice(0x00, 4 + 20); public uint PlayerID { @@ -37,7 +37,7 @@ public string PlayerName set => StringUtil.GetBytes(value, 10).CopyTo(Data, 0x20); } - public byte[] GetPlayerIdentity() => Data.Slice(0x1C, 20); + public byte[] GetPlayerIdentity() => Data.Slice(0x1C, 4 + 20); public byte[] GetEventFlags() => Data.Slice(0x38, 0x100); public void SetEventFlags(byte[] value) => value.CopyTo(Data, 0x38);