aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-09-29 22:01:40 +0200
committerShauren <shauren.trinity@gmail.com>2025-09-29 22:56:35 +0200
commit5ef99978c03eb5cc7d40c1f1a1cc4e5c78f8ea27 (patch)
tree230d706c5738136329af74047f8e874c214ccce9 /src/server/scripts/World
parentbc7be2a08438a1d327586d4a57d4e99944b86418 (diff)
Core/Misc: Reduce differences between branches
Diffstat (limited to 'src/server/scripts/World')
-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 f5e1f05569d..71550d2a800 100644
--- a/src/server/scripts/World/action_ip_logger.cpp
+++ b/src/server/scripts/World/action_ip_logger.cpp
@@ -206,7 +206,6 @@ class CharacterActionIpLogger : public PlayerScript
// We declare all the required variables
uint32 playerGuid = player->GetSession()->GetAccountId();
- ObjectGuid::LowType characterGuid = player->GetGUID().GetCounter();
uint32 realmId = realm.Id.Realm;
const std::string currentIp = player->GetSession()->GetRemoteAddress();
std::string systemNote = "ERROR"; // "ERROR" is a placeholder here. We change it...
@@ -240,7 +239,7 @@ class CharacterActionIpLogger : public PlayerScript
LoginDatabasePreparedStatement* stmt = LoginDatabase.GetPreparedStatement(LOGIN_INS_CHAR_IP_LOGGING);
stmt->setUInt32(0, playerGuid);
- stmt->setUInt64(1, characterGuid);
+ stmt->setUInt64(1, player->GetGUID().GetCounter());
stmt->setUInt32(2, realmId);
stmt->setUInt8(3, aType);
stmt->setString(4, currentIp); // We query the ip here.