Misc Fixes

This commit is contained in:
hondacrx
2021-01-08 20:45:13 -05:00
parent 21edaf9993
commit 65855d1f22
8 changed files with 56 additions and 47 deletions
@@ -111,12 +111,12 @@ namespace Game.Networking.Packets
uint Count = _worldPacket.ReadUInt32();
Target = _worldPacket.ReadPackedGuid();
for (uint i = 0; i < Count; ++i)
for (int i = 0; i < Count; ++i)
{
LootRequest lootRequest = new LootRequest();
lootRequest.Object = _worldPacket.ReadPackedGuid();
lootRequest.LootListID = _worldPacket.ReadUInt8();
Loot.Add(lootRequest);
Loot[i] = lootRequest;
}
}
@@ -151,7 +151,7 @@ namespace Game.Networking.Packets
{
uint size = _worldPacket.ReadUInt32();
for (int i = 0; i < size; ++i)
Talents[i].Read(_worldPacket);
Talents[i] = new PvPTalent(_worldPacket);
}
public Array<PvPTalent> Talents = new Array<PvPTalent>(4);
@@ -182,7 +182,7 @@ namespace Game.Networking.Packets
public ushort PvPTalentID;
public byte Slot;
public void Read(WorldPacket data)
public PvPTalent(WorldPacket data)
{
PvPTalentID = data.ReadUInt16();
Slot = data.ReadUInt8();