mirror of
https://github.com/kwsch/NLSE.git
synced 2026-09-08 11:25:24 -05:00
Fix Town Name writing offset
This is why you don't copy paste commit.
This commit is contained in:
@@ -172,7 +172,7 @@ public byte[] Write()
|
||||
Data[0x5C7B9] = (byte)((Data[0x5C7B9] & 0xFC) | TrainStationColor);
|
||||
Data[0x5C836] = (byte)NativeFruit;
|
||||
|
||||
Array.Copy(Encoding.Unicode.GetBytes(TownName.PadRight(9, '\0')), 0, Data, 0x55A8, 0x12);
|
||||
Array.Copy(Encoding.Unicode.GetBytes(TownName.PadRight(9, '\0')), 0, Data, 0x5C7BA, 0x12);
|
||||
Array.Copy(BitConverter.GetBytes(SecondsPlayed), 0, Data, 0x5C7B0, 4);
|
||||
Array.Copy(BitConverter.GetBytes(PlayDays), 0, Data, 0x5C83A, 2);
|
||||
return Data;
|
||||
|
||||
Reference in New Issue
Block a user