Fixed string getting cut off if the string had some symbols. The length of the string would not be the same as the bytes length.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
using Framework.Constants;
|
||||
using Game.DataStorage;
|
||||
using Game.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Game.Network.Packets
|
||||
@@ -371,7 +372,7 @@ namespace Game.Network.Packets
|
||||
|
||||
AbilityID.ForEach(ability => data.WriteUInt32(ability.Id));
|
||||
|
||||
data.WriteBits(CustomName.Length, 7);
|
||||
data.WriteBits(CustomName.GetByteCount(), 7);
|
||||
data.FlushBits();
|
||||
data.WriteString(CustomName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user