aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-22 17:33:55 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-22 17:33:55 +0200
commitb3e3cfa81f5ea30d014b9202e8c2a47f90303a99 (patch)
treec0f9efadaf5a62aa8954997812905e8bec74d8d6 /src/server/scripts
parentb10d3cd24a7525483f3e4f8a723c3da772fb5b3d (diff)
Core/Entities: First part of removing GetGUIDLow() uses
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/World/action_ip_logger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/scripts/World/action_ip_logger.cpp b/src/server/scripts/World/action_ip_logger.cpp
index d9900b2690d..8cc8652b3db 100644
--- a/src/server/scripts/World/action_ip_logger.cpp
+++ b/src/server/scripts/World/action_ip_logger.cpp
@@ -201,7 +201,6 @@ class CharacterActionIpLogger : public PlayerScript
// We declare all the required variables
uint32 playerGuid = player->GetSession()->GetAccountId();
- uint32 characterGuid = player->GetGUIDLow();
const std::string currentIp = player->GetSession()->GetRemoteAddress();
std::string systemNote = "ERROR"; // "ERROR" is a placeholder here. We change it...
@@ -234,7 +233,7 @@ class CharacterActionIpLogger : public PlayerScript
PreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_CHAR_IP_LOGGING);
stmt->setUInt32(0, playerGuid);
- stmt->setUInt32(1, characterGuid);
+ stmt->setUInt32(1, player->GetGUID().GetCounter());
stmt->setUInt8(2, aType);
stmt->setString(3, currentIp.c_str()); // We query the ip here.
stmt->setString(4, systemNote.c_str());