mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
[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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user