diff --git a/Libraries/Flakkari4Unity/Source/Components/Common/Child.cs b/Libraries/Flakkari4Unity/Source/Components/Common/Child.cs index f70facb..15b9e8f 100644 --- a/Libraries/Flakkari4Unity/Source/Components/Common/Child.cs +++ b/Libraries/Flakkari4Unity/Source/Components/Common/Child.cs @@ -9,8 +9,8 @@ public class Child : MonoBehaviour internal void Deserialize(byte[] data, ref int i) { - ulong length = BitConverter.ToUInt64(data, i); - i += sizeof(ulong); + uint length = BitConverter.ToUInt32(data, i); + i += sizeof(uint); _name = System.Text.Encoding.UTF8.GetString(data, i, (int)length); i += (int)length; } diff --git a/Libraries/Flakkari4Unity/Source/Components/Common/Evolve.cs b/Libraries/Flakkari4Unity/Source/Components/Common/Evolve.cs index da09135..6e1ea1f 100644 --- a/Libraries/Flakkari4Unity/Source/Components/Common/Evolve.cs +++ b/Libraries/Flakkari4Unity/Source/Components/Common/Evolve.cs @@ -9,8 +9,8 @@ public class Evolve : MonoBehaviour internal void Deserialize(byte[] data, ref int i) { - ulong length = BitConverter.ToUInt64(data, i); - i += sizeof(ulong); + uint length = BitConverter.ToUInt32(data, i); + i += sizeof(uint); _name = System.Text.Encoding.UTF8.GetString(data, i, (int)length); i += (int)length; } diff --git a/Libraries/Flakkari4Unity/Source/Components/Common/Level.cs b/Libraries/Flakkari4Unity/Source/Components/Common/Level.cs index 49c9416..3f9d7c7 100644 --- a/Libraries/Flakkari4Unity/Source/Components/Common/Level.cs +++ b/Libraries/Flakkari4Unity/Source/Components/Common/Level.cs @@ -14,8 +14,8 @@ internal void Deserialize(byte[] data, ref int i) { level = BitConverter.ToUInt64(data, i); i += sizeof(ulong); - ulong length = BitConverter.ToUInt64(data, i); - i += sizeof(ulong); + uint length = BitConverter.ToUInt32(data, i); + i += sizeof(uint); currentWeapon = System.Text.Encoding.UTF8.GetString(data, i, (int)length); i += (int)length; currentExp = BitConverter.ToUInt64(data, i); diff --git a/Libraries/Flakkari4Unity/Source/Components/Common/Tag.cs b/Libraries/Flakkari4Unity/Source/Components/Common/Tag.cs index 176a17a..6d541a1 100644 --- a/Libraries/Flakkari4Unity/Source/Components/Common/Tag.cs +++ b/Libraries/Flakkari4Unity/Source/Components/Common/Tag.cs @@ -9,8 +9,8 @@ public class Tag : MonoBehaviour internal void Deserialize(byte[] data, ref int i) { - ulong length = BitConverter.ToUInt64(data, i); - i += sizeof(ulong); + uint length = BitConverter.ToUInt32(data, i); + i += sizeof(uint); name = System.Text.Encoding.UTF8.GetString(data, i, (int)length); i += (int)length; } diff --git a/Libraries/Flakkari4Unity/Source/Components/Common/Template.cs b/Libraries/Flakkari4Unity/Source/Components/Common/Template.cs index ea1c146..9e58ef9 100644 --- a/Libraries/Flakkari4Unity/Source/Components/Common/Template.cs +++ b/Libraries/Flakkari4Unity/Source/Components/Common/Template.cs @@ -7,8 +7,8 @@ public class Template : MonoBehaviour { internal void Deserialize(byte[] data, ref int i) { - ulong length = BitConverter.ToUInt64(data, i); - i += sizeof(ulong); + uint length = BitConverter.ToUInt32(data, i); + i += sizeof(uint); name = System.Text.Encoding.UTF8.GetString(data, i, (int)length); i += (int)length; }