mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
fix(Core): fixed crash happening when clearing old mail (#3604)
This commit is contained in:
@@ -1669,7 +1669,7 @@ public:
|
||||
|
||||
void RemoveMail(uint32 id);
|
||||
|
||||
void AddMail(Mail* mail) { m_mailCache.push_front(mail); }// for call from WorldSession::SendMailTo
|
||||
void AddMail(Mail* mail) { totalMailCount++; m_mailCache.push_front(mail); }// for call from WorldSession::SendMailTo
|
||||
uint32 GetMailSize() { return totalMailCount; }
|
||||
uint32 GetMailCacheSize() { return m_mailCache.size();}
|
||||
Mail* GetMail(uint32 id);
|
||||
@@ -1682,7 +1682,7 @@ public:
|
||||
/*********************************************************/
|
||||
|
||||
uint8 unReadMails;
|
||||
uint64 totalMailCount;
|
||||
uint32 totalMailCount;
|
||||
time_t m_nextMailDelivereTime;
|
||||
|
||||
typedef std::unordered_map<uint32, Item*> ItemMap;
|
||||
|
||||
Reference in New Issue
Block a user