diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-04-06 19:10:28 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-04-06 19:10:28 +0200 |
commit | f759809d9d4364bc1d988e4390d3d5a33d5469e9 (patch) | |
tree | a5a5462bd9ca63583da9606157f61301d45cbc08 /src/server/game/Handlers/CharacterHandler.cpp | |
parent | a8e6282ff5a6a6dfdb98bdbf74dc9ed5a911d991 (diff) |
Core/PacketIO: Use new time utilities in packets instead of plain time_t/uint32
Diffstat (limited to 'src/server/game/Handlers/CharacterHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/CharacterHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index a38f7477d70..6245b50a9d6 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -1057,9 +1057,9 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder) WorldPackets::ClientConfig::AccountDataTimes accountDataTimes; accountDataTimes.PlayerGuid = playerGuid; - accountDataTimes.ServerTime = uint32(GameTime::GetGameTime()); + accountDataTimes.ServerTime = GameTime::GetGameTimeSystemPoint(); for (uint32 i = 0; i < NUM_ACCOUNT_DATA_TYPES; ++i) - accountDataTimes.AccountTimes[i] = uint32(GetAccountData(AccountDataType(i))->Time); + accountDataTimes.AccountTimes[i] = GetAccountData(AccountDataType(i))->Time; SendPacket(accountDataTimes.Write()); |