Core/Mails: Fixed mail_items entries being left in database after deleting expired mails
This commit is contained in:
1 parent
1d1b01635d
commit
4ce638e897
1 file changed
+4
@@ -5806,6 +5806,10 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
|
||||
stmt->setUInt32(0, itr2->item_guid);
|
||||
CharacterDatabase.Execute(stmt);
|
||||
}
|
||||
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_MAIL_ITEM_BY_ID);
|
||||
stmt->setUInt32(0, m->messageID);
|
||||
CharacterDatabase.Execute(stmt);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user