fix(Core): fixed crash happening when clearing old mail (#3604)

This commit is contained in:
Petric
2020-10-24 09:42:35 +01:00
committed by GitHub
parent d07a34c1d5
commit b3a967db60
2 changed files with 9 additions and 6 deletions

View File

@@ -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;