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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user