aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2014-10-23 23:04:16 +0200
committerShauren <shauren.trinity@gmail.com>2014-10-23 23:04:16 +0200
commita20fbfc8e086ca43669b2340d0612ef93b38b703 (patch)
treef2a4f3cf9131d4d022858771760a17056899fdc7 /src/server/scripts/Commands
parent1db15bd6859d70b55c4163227952c46a2e89d913 (diff)
Core/Entities: Third part of converting int to bigint guids in database
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_list.cpp6
-rw-r--r--src/server/scripts/Commands/cs_tele.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Commands/cs_list.cpp b/src/server/scripts/Commands/cs_list.cpp
index ff42027ffc8..20ebb24b6ad 100644
--- a/src/server/scripts/Commands/cs_list.cpp
+++ b/src/server/scripts/Commands/cs_list.cpp
@@ -181,10 +181,10 @@ public:
do
{
Field* fields = result->Fetch();
- uint32 itemGuid = fields[0].GetUInt32();
+ ObjectGuid itemGuid(HIGHGUID_ITEM, fields[0].GetUInt64());
uint32 itemBag = fields[1].GetUInt32();
uint8 itemSlot = fields[2].GetUInt8();
- uint32 ownerGuid = fields[3].GetUInt32();
+ ObjectGuid ownerGuid(HIGHGUID_PLAYER, fields[3].GetUInt64());
uint32 ownerAccountId = fields[4].GetUInt32();
std::string ownerName = fields[5].GetString();
@@ -198,7 +198,7 @@ public:
else
itemPos = "";
- handler->PSendSysMessage(LANG_ITEMLIST_SLOT, itemGuid, ownerName.c_str(), ownerGuid, ownerAccountId, itemPos);
+ handler->PSendSysMessage(LANG_ITEMLIST_SLOT, itemGuid.ToString().c_str(), ownerName.c_str(), ownerGuid.ToString().c_str(), ownerAccountId, itemPos);
}
while (result->NextRow());
diff --git a/src/server/scripts/Commands/cs_tele.cpp b/src/server/scripts/Commands/cs_tele.cpp
index 01b146b68c6..2aa5fdc40e6 100644
--- a/src/server/scripts/Commands/cs_tele.cpp
+++ b/src/server/scripts/Commands/cs_tele.cpp
@@ -135,7 +135,7 @@ public:
else
{
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_HOMEBIND);
- stmt->setUInt32(0, target_guid.GetCounter());
+ stmt->setUInt64(0, target_guid.GetCounter());
PreparedQueryResult resultDB = CharacterDatabase.Query(stmt);
if (resultDB)