From 5f6974c1704760e142a1718709d17db64c3b6d11 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 22 Oct 2014 15:46:25 +0200 Subject: Scripts/Commands: Replaced lowguid printing in command output with ToString() formatted guid (cherry picked from commit b10d3cd24a7525483f3e4f8a723c3da772fb5b3d) --- src/server/scripts/World/action_ip_logger.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/server/scripts/World') diff --git a/src/server/scripts/World/action_ip_logger.cpp b/src/server/scripts/World/action_ip_logger.cpp index 2c3ac642795..f5e1f05569d 100644 --- a/src/server/scripts/World/action_ip_logger.cpp +++ b/src/server/scripts/World/action_ip_logger.cpp @@ -275,8 +275,6 @@ public: // Action IP Logger is only intialized if config is set up // Else, this script isn't loaded in the first place: We require no config check. - // We declare all the required variables - ObjectGuid::LowType characterGuid = guid.GetCounter(); // We have no access to any member function of Player* or WorldSession*. So use old-fashioned way. uint32 realmId = realm.Id.Realm; // Query playerGuid/accountId, as we only have characterGuid std::string systemNote = "ERROR"; // "ERROR" is a placeholder here. We change it later. @@ -302,7 +300,7 @@ public: LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_ALDL_IP_LOGGING); stmt->setUInt32(0, playerGuid); - stmt->setUInt64(1, characterGuid); + stmt->setUInt64(1, guid.GetCounter()); stmt->setUInt32(2, realmId); stmt->setUInt8(3, aType); stmt->setUInt32(4, playerGuid); -- cgit v1.2.3