Skip to content

Commit

Permalink
Fix 4.4.1 SMSG_ACCOUNT_DATA_TIMES
Browse files Browse the repository at this point in the history
  • Loading branch information
meji46 committed Nov 13, 2024
1 parent b116444 commit 7052e1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions WowPacketParser/Enums/AccountDataType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public enum AccountDataType
PerCharacterClickBindingsCache = 12,
GlobalEditModeCache = 13,
PerCharacterEditModeCache = 14,
GlobalFrontendChatSettings = 15,
GlobalCharacterListOrder = 16,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public static void HandleAccountDataTimes(Packet packet)
packet.ReadPackedGuid128("Guid");
packet.ReadTime64("ServerTime");

for (var i = 0; i < 15; ++i)
var count = ClientVersion.AddedInVersion(ClientVersionBuild.V4_4_1_57294) ? 17 : 15;

for (var i = 0; i < count; ++i)
packet.ReadTime64($"[{(AccountDataType)i}] Time", i);
}

Expand Down

0 comments on commit 7052e1f

Please sign in to comment.