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
+1 -5
View File
@@ -82,11 +82,7 @@ namespace Game.Mails
foreach (var item in m_items.Values)
{
if (inDB)
{
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.DEL_ITEM_INSTANCE);
stmt.AddValue(0, item.GetGUID().GetCounter());
trans.Append(stmt);
}
item.DeleteFromDB(trans);
}
m_items.Clear();