Core/Misc: Few more missed chances related to money
Expect more commits like this :/
This commit is contained in:
1 parent
abadc30efc
commit
6dd20770af
3 files changed
+7
-7
No files matched your search
@@ -4730,7 +4730,7 @@ void Player::DeleteFromDB(uint64 playerguid, uint32 accountId, bool updateRealmC
|
||||
uint32 sender = mailFields[3].GetUInt32();
|
||||
std::string subject = mailFields[4].GetString();
|
||||
std::string body = mailFields[5].GetString();
|
||||
uint32 money = mailFields[6].GetUInt32();
|
||||
uint64 money = mailFields[6].GetUInt64();
|
||||
bool has_items = mailFields[7].GetBool();
|
||||
|
||||
// We can return mail now
|
||||
@@ -17868,8 +17868,8 @@ void Player::_LoadMail()
|
||||
bool has_items = fields[6].GetBool();
|
||||
m->expire_time = time_t(fields[7].GetUInt32());
|
||||
m->deliver_time = time_t(fields[8].GetUInt32());
|
||||
m->money = fields[9].GetUInt32();
|
||||
m->COD = fields[10].GetUInt32();
|
||||
m->money = fields[9].GetUInt64();
|
||||
m->COD = fields[10].GetUInt64();
|
||||
m->checked = fields[11].GetUInt8();
|
||||
m->stationery = fields[12].GetUInt8();
|
||||
m->mailTemplateId = fields[13].GetInt16();
|
||||
|
||||
@@ -5449,7 +5449,7 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
|
||||
bool has_items = fields[4].GetBool();
|
||||
m->expire_time = time_t(fields[5].GetUInt32());
|
||||
m->deliver_time = 0;
|
||||
m->COD = fields[6].GetUInt32();
|
||||
m->COD = fields[6].GetUInt64();
|
||||
m->checked = fields[7].GetUInt8();
|
||||
m->mailTemplateId = fields[8].GetInt16();
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ class MailDraft
|
||||
|
||||
public: // modifiers
|
||||
MailDraft& AddItem(Item* item);
|
||||
MailDraft& AddMoney(uint32 money) { m_money = money; return *this; }
|
||||
MailDraft& AddMoney(uint64 money) { m_money = money; return *this; }
|
||||
MailDraft& AddCOD(uint32 COD) { m_COD = COD; return *this; }
|
||||
|
||||
public: // finishers
|
||||
@@ -147,8 +147,8 @@ class MailDraft
|
||||
|
||||
MailItemMap m_items; // Keep the items in a map to avoid duplicate guids (which can happen), store only low part of guid
|
||||
|
||||
uint32 m_money;
|
||||
uint32 m_COD;
|
||||
uint64 m_money;
|
||||
uint64 m_COD;
|
||||
};
|
||||
|
||||
struct MailItemInfo
|
||||
|
||||
Reference in new issue
Block a user