aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_list.cpp10
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp4
-rw-r--r--src/server/scripts/Commands/cs_wp.cpp2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/server/scripts/Commands/cs_list.cpp b/src/server/scripts/Commands/cs_list.cpp
index 56e5dd52642..1f10ced34e1 100644
--- a/src/server/scripts/Commands/cs_list.cpp
+++ b/src/server/scripts/Commands/cs_list.cpp
@@ -242,9 +242,9 @@ public:
do
{
Field* fields = result->Fetch();
- ObjectGuid::LowType itemGuid = fields[0].GetUInt32();
- ObjectGuid::LowType itemSender = fields[1].GetUInt32();
- uint32 itemReceiver = fields[2].GetUInt32();
+ ObjectGuid::LowType itemGuid = fields[0].GetUInt32();
+ ObjectGuid::LowType itemSender = fields[1].GetUInt32();
+ ObjectGuid::LowType itemReceiver = fields[2].GetUInt32();
uint32 itemSenderAccountId = fields[3].GetUInt32();
std::string itemSenderName = fields[4].GetString();
uint32 itemReceiverAccount = fields[5].GetUInt32();
@@ -559,9 +559,9 @@ public:
{
Field* queryFields = queryResult->Fetch();
uint32 messageId = queryFields[0].GetUInt32();
- uint32 senderId = queryFields[1].GetUInt32();
+ ObjectGuid::LowType senderId = queryFields[1].GetUInt32();
std::string sender = queryFields[2].GetString();
- uint32 receiverId = queryFields[3].GetUInt32();
+ ObjectGuid::LowType receiverId = queryFields[3].GetUInt32();
std::string receiver = queryFields[4].GetString();
std::string subject = queryFields[5].GetString();
uint64 deliverTime = queryFields[6].GetUInt32();
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp
index e1192f71159..474296a6a2f 100644
--- a/src/server/scripts/Commands/cs_misc.cpp
+++ b/src/server/scripts/Commands/cs_misc.cpp
@@ -1675,7 +1675,7 @@ public:
char const* zoneName = nullptr;
// Guild data print variables defined so that they exist, but are not necessarily used
- uint32 guildId = 0;
+ ObjectGuid::LowType guildId = 0;
uint8 guildRankId = 0;
std::string guildName;
std::string guildRank;
@@ -1819,7 +1819,7 @@ public:
ObjectGuid::LowType gguid = fields[1].GetUInt32(); // We check if have a guild for the person, so we might not require to query it at all
xptotal = sObjectMgr->GetXPForLevel(level);
- if (gguid != 0)
+ if (gguid)
{
// Guild Data - an own query, because it may not happen.
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_GUILD_MEMBER_EXTENDED);
diff --git a/src/server/scripts/Commands/cs_wp.cpp b/src/server/scripts/Commands/cs_wp.cpp
index 2945c116ab7..047d87b889c 100644
--- a/src/server/scripts/Commands/cs_wp.cpp
+++ b/src/server/scripts/Commands/cs_wp.cpp
@@ -847,7 +847,7 @@ public:
do
{
Field* fields = result2->Fetch();
- uint32 wpguid = fields[0].GetUInt32();
+ ObjectGuid::LowType wpguid = fields[0].GetUInt32();
if (!Creature::DeleteFromDB(wpguid))
{
handler->PSendSysMessage(LANG_WAYPOINT_NOTREMOVED, wpguid);