All pastes #914886 Raw Edit

Unnamed

public text v1 · immutable
#914886 ·published 2008-02-23 08:25 UTC
rendered paste body
Index: Player.cpp
===================================================================
--- Player.cpp  (revision 5262)
+++ Player.cpp  (working copy)
@@ -9343,7 +9343,7 @@
 
             RemoveEnchantmentDurations(pItem);
             RemoveItemDurations(pItem);
-
+            pItem->RemoveFromUpdateQueueOf(this)
             AddEnchantmentDurations(pItem2);
             // AddItemDurations(pItem2); - pItem2 already have duration listed for player
             return pItem2;
@@ -9422,6 +9422,7 @@
             pItem2->SetState(ITEM_CHANGED, this);
 
             RemoveEnchantmentDurations(pItem);
+            pItem->RemoveFromUpdateQueueOf(this)
             AddEnchantmentDurations(pItem2);
             ApplyEquipCooldown(pItem2);
             return pItem2;