Fixes character loading error.

This commit is contained in:
hondacrx
2017-07-05 12:10:22 -04:00
parent 4cd1efe35c
commit c2847a7278
+6 -2
View File
@@ -173,10 +173,10 @@ namespace Game.Network.Packets
if (atLoginFlags.HasAnyFlag(AtLoginFlags.Rename))
Flags |= CharacterFlags.Rename;
if (fields.Read<uint>(23) != 0)
if (fields.Read<uint>(26) != 0)
Flags |= CharacterFlags.LockedByBilling;
if (WorldConfig.GetBoolValue(WorldCfg.DeclinedNamesUsed) && !string.IsNullOrEmpty(fields.Read<string>(26)))
if (WorldConfig.GetBoolValue(WorldCfg.DeclinedNamesUsed) && !string.IsNullOrEmpty(fields.Read<string>(30)))
Flags |= CharacterFlags.Declined;
if (atLoginFlags.HasAnyFlag(AtLoginFlags.Customize))
@@ -210,6 +210,10 @@ namespace Game.Network.Packets
ListPosition = fields.Read<byte>(27);
LastPlayedTime = fields.Read<uint>(28);
var spec = Global.DB2Mgr.GetChrSpecializationByIndex(ClassId, fields.Read<byte>(29));
if (spec != null)
SpecID = (ushort)spec.Id;
for (byte slot = 0; slot < InventorySlots.BagEnd; ++slot)
{
VisualItems[slot].InventoryType = (byte)equipment.NextUInt32();