diff options
| author | Shauren <shauren.trinity@gmail.com> | 2014-10-22 15:46:25 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2014-10-22 15:46:25 +0200 |
| commit | b10d3cd24a7525483f3e4f8a723c3da772fb5b3d (patch) | |
| tree | 643aba36912a9e54635d536d95595a7572ca2685 /src/server/scripts/World | |
| parent | a5a84e8808e1e1d60038230d83cb65878cbf35b1 (diff) | |
Scripts/Commands: Replaced lowguid printing in command output with ToString() formatted guid
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/action_ip_logger.cpp | 4 |
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 2977f4e974a..d9900b2690d 100644 --- a/src/server/scripts/World/action_ip_logger.cpp +++ b/src/server/scripts/World/action_ip_logger.cpp @@ -268,8 +268,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 - uint32 characterGuid = guid.GetCounter(); // We have no access to any member function of Player* or WorldSession*. So use old-fashioned way. // Query playerGuid/accountId, as we only have characterGuid std::string systemNote = "ERROR"; // "ERROR" is a placeholder here. We change it later. @@ -294,7 +292,7 @@ public: PreparedStatement* stmt2 = LoginDatabase.GetPreparedStatement(LOGIN_INS_ALDL_IP_LOGGING); stmt2->setUInt32(0, playerGuid); - stmt2->setUInt32(1, characterGuid); + stmt2->setUInt32(1, guid.GetCounter()); stmt2->setUInt8(2, aType); stmt2->setUInt32(3, playerGuid); stmt2->setString(4, systemNote.c_str()); |
