Updated ScriptMgr with new function to favorite transmog module

This commit is contained in:
Yehonal
2016-11-17 10:28:08 +01:00
committed by GitHub
parent 1ec1d16554
commit d53b5522f9
6 changed files with 64 additions and 7 deletions
+1
View File
@@ -465,6 +465,7 @@ bool Item::LoadFromDB(uint32 guid, uint64 owner_guid, Field* fields, uint32 entr
/*static*/
void Item::DeleteFromDB(SQLTransaction& trans, uint32 itemGuid)
{
sScriptMgr->OnGlobalItemDelFromDB(trans,itemGuid);
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_ITEM_INSTANCE);
stmt->setUInt32(0, itemGuid);
trans->Append(stmt);