aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-22 15:46:25 +0200
committerShauren <shauren.trinity@gmail.com>2025-09-29 14:33:53 +0200
commit5f6974c1704760e142a1718709d17db64c3b6d11 (patch)
tree95b37b9e2bc5d983ecffe00f7a8e3b3506e95be0 /src/server/scripts/World
parent96bd126236f8c222b360678f6e1221351c2d5663 (diff)
Scripts/Commands: Replaced lowguid printing in command output with ToString() formatted guid
(cherry picked from commit b10d3cd24a7525483f3e4f8a723c3da772fb5b3d)
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/action_ip_logger.cpp4
1 files changed, 1 insertions, 3 deletions
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);