diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Item.cpp | 8 | ||||
-rw-r--r-- | src/game/Item.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 1a5dd558c8f..7c2a49e10af 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -625,12 +625,14 @@ void Item::SetState(ItemUpdateState state, Player *forplayer) delete this; return; } - if (state != ITEM_UNCHANGED) { // new items must stay in new state until saved - if (uState != ITEM_NEW) uState = state; - AddToUpdateQueueOf(forplayer); + if (uState != ITEM_NEW) + uState = state; + + if (forplayer) + AddToUpdateQueueOf(forplayer); } else { diff --git a/src/game/Item.h b/src/game/Item.h index 8e504800e9a..c0156fab8b6 100644 --- a/src/game/Item.h +++ b/src/game/Item.h @@ -250,8 +250,8 @@ class Item : public Object void SetInTrade(bool b = true) { mb_in_trade = b; } bool IsInTrade() const { return mb_in_trade; } - bool HasEnchantRequiredSkill(const Player *pPlayer) const; - uint32 GetEnchantRequiredLevel() const; + bool HasEnchantRequiredSkill(const Player *pPlayer) const; + uint32 GetEnchantRequiredLevel() const; bool IsFitToSpellRequirements(SpellEntry const* spellInfo) const; bool IsTargetValidForItemUse(Unit* pUnitTarget); |