diff options
author | megamage <none@none> | 2009-03-21 22:44:59 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-21 22:44:59 -0600 |
commit | b522a34247b1a5c30d918c2f0debca74b1ff4cf9 (patch) | |
tree | 4a6c25b59b0ddcf1a6103eccd771c60f13a980e7 /src/game/ObjectMgr.cpp | |
parent | 40a03daf823a66e89b4bbcb758545a040542f083 (diff) |
[7513] Implement currencies tab work. Also check related item data at server startup. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index fec531f96d9..dfd451665c2 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1824,6 +1824,17 @@ void ObjectMgr::LoadItemPrototypes() { sLog.outErrorDb("Item (Entry: %u) has bag family bit set not listed in ItemBagFamily.dbc, remove bit",i); const_cast<ItemPrototype*>(proto)->BagFamily &= ~mask; + continue; + } + + if(BAG_FAMILY_MASK_CURRENCY_TOKENS & mask) + { + CurrencyTypesEntry const* ctEntry = sCurrencyTypesStore.LookupEntry(proto->ItemId); + if(!ctEntry) + { + sLog.outErrorDb("Item (Entry: %u) has currency bag family bit set in BagFamily but not listed in CurrencyTypes.dbc, remove bit",i); + const_cast<ItemPrototype*>(proto)->BagFamily &= ~mask; + } } } } |