Fixed two crashes

This commit is contained in:
hondacrx
2021-04-21 19:54:20 -04:00
parent ba064327b0
commit 40826f78a2
6 changed files with 12 additions and 10 deletions
@@ -137,7 +137,7 @@ namespace Game.Networking.Packets
_worldPacket.WriteUInt32(Mapid);
_worldPacket.WriteUInt32(ShutdownTimer);
_worldPacket.WriteUInt32(StartTimer);
_worldPacket.WriteBit(ArenaFaction);
_worldPacket.WriteBit(ArenaFaction != 0);
_worldPacket.WriteBit(LeftEarly);
_worldPacket.FlushBits();
}
@@ -629,7 +629,7 @@ namespace Game.Networking.Packets
foreach (var pvpStat in Stats)
pvpStat.Write(data);
data.WriteBit(Faction);
data.WriteBit(Faction != 0);
data.WriteBit(IsInWorld);
data.WriteBit(Honor.HasValue);
data.WriteBit(PreMatchRating.HasValue);
@@ -63,7 +63,7 @@ namespace Game.Networking.Packets
_worldPacket.WriteInt32(MaxLevel);
_worldPacket.WriteInt32(MapID);
_worldPacket.WriteUInt32(InstanceID);
_worldPacket.WriteBit(Index);
_worldPacket.WriteBit(Index != 0);
_worldPacket.FlushBits();
}