mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
*Fix a crash caused by itemexpire.
--HG-- branch : trunk
This commit is contained in:
@@ -285,9 +285,8 @@ void Item::UpdateDuration(Player* owner, uint32 diff)
|
||||
|
||||
if (GetUInt32Value(ITEM_FIELD_DURATION)<=diff)
|
||||
{
|
||||
owner->DestroyItem(GetBagSlot(), GetSlot(), true);
|
||||
if(const ItemPrototype *proto = GetProto())
|
||||
Script->ItemExpire(owner, proto);
|
||||
Script->ItemExpire(owner, proto);
|
||||
owner->DestroyItem(GetBagSlot(), GetSlot(), true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user