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:
@@ -1398,7 +1398,7 @@ namespace Game.Network.Packets
|
||||
data.WriteBit(DstLocation.HasValue);
|
||||
data.WriteBit(Orientation.HasValue);
|
||||
data.WriteBit(MapID.HasValue);
|
||||
data.WriteBits(Name.Length, 7);
|
||||
data.WriteBits(Name.GetByteCount(), 7);
|
||||
data.FlushBits();
|
||||
|
||||
data.WritePackedGuid(Unit);
|
||||
|
||||
Reference in New Issue
Block a user