aboutsummaryrefslogtreecommitdiff
path: root/src/game/QueryHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/QueryHandler.cpp')
-rw-r--r--src/game/QueryHandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/QueryHandler.cpp b/src/game/QueryHandler.cpp
index 4ce59eef384..f0f70fde55c 100644
--- a/src/game/QueryHandler.cpp
+++ b/src/game/QueryHandler.cpp
@@ -33,6 +33,7 @@
#include "NPCHandler.h"
#include "Pet.h"
#include "MapManager.h"
+#include "TimeMgr.h"
void WorldSession::SendNameQueryOpcode(Player *p)
{
@@ -142,7 +143,7 @@ void WorldSession::HandleNameQueryOpcode( WorldPacket & recv_data )
void WorldSession::HandleQueryTimeOpcode( WorldPacket & /*recv_data*/ )
{
WorldPacket data( SMSG_QUERY_TIME_RESPONSE, 4+4 );
- data << (uint32)time(NULL);
+ data << (uint32)sGameTime.GetGameTime();
data << (uint32)0;
SendPacket( &data );
}