diff options
author | megamage <none@none> | 2009-03-24 09:45:03 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-24 09:45:03 -0600 |
commit | cd66e85ed191defdde64164829e443e2c008139b (patch) | |
tree | 0dfddec49f13822339fff57cf6741116a1f13eae /src/game/ObjectMgr.cpp | |
parent | ba1fd0db9098a6bd66fface009f5669d8eccb93c (diff) |
[7528] Avoid use same iteration variable for internal loop. Author: Fog
This will fix problem with wrong item entry output in error message.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index cb8e6713b16..59dfd500f25 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1813,13 +1813,13 @@ void ObjectMgr::LoadItemPrototypes() if(proto->BagFamily) { // check bits - for(uint32 i = 0; i < sizeof(proto->BagFamily)*8; ++i) + for(uint32 j = 0; j < sizeof(proto->BagFamily)*8; ++j) { - uint32 mask = 1 << i; + uint32 mask = 1 << j; if((proto->BagFamily & mask)==0) continue; - ItemBagFamilyEntry const* bf = sItemBagFamilyStore.LookupEntry(i+1); + ItemBagFamilyEntry const* bf = sItemBagFamilyStore.LookupEntry(j+1); if(!bf) { sLog.outErrorDb("Item (Entry: %u) has bag family bit set not listed in ItemBagFamily.dbc, remove bit",i); |