Core/Items: Fixed deleting items from db leaving orphaned transmog/artifact/modifier data when deleted from outside of player item update queue

Port From (https://github.com/TrinityCore/TrinityCore/commit/f8cb710c7e6699c5542e9e435c3b7d2d8096669d)
This commit is contained in:
hondacrx
2019-12-02 22:49:54 -05:00
parent 013933d7f5
commit cd396cdda5
5 changed files with 119 additions and 79 deletions
+2 -3
View File
@@ -8749,9 +8749,8 @@ namespace Game
// mail open and then not returned
foreach (var itemInfo in m.items)
{
stmt = DB.Characters.GetPreparedStatement(CharStatements.DEL_ITEM_INSTANCE);
stmt.AddValue(0, itemInfo.item_guid);
DB.Characters.Execute(stmt);
Item.DeleteFromDB(null, itemInfo.item_guid);
AzeriteItem.DeleteFromDB(null, itemInfo.item_guid);
}
stmt = DB.Characters.GetPreparedStatement(CharStatements.DEL_MAIL_ITEM_BY_ID);