diff options
-rw-r--r-- | src/game/Item.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 9e07dbfaa16..f37d6d6606e 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -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; } |