mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7528] Avoid use same iteration variable for internal loop.
This will fix problem with wrong item entry output in error message. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
73ac0bcc7f
commit
f9a2674ce3
2 changed files with 4 additions and 4 deletions
|
|
@ -1718,13 +1718,13 @@ void ObjectMgr::LoadItemPrototypes()
|
||||||
if(proto->BagFamily)
|
if(proto->BagFamily)
|
||||||
{
|
{
|
||||||
// check bits
|
// 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)
|
if((proto->BagFamily & mask)==0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ItemBagFamilyEntry const* bf = sItemBagFamilyStore.LookupEntry(i+1);
|
ItemBagFamilyEntry const* bf = sItemBagFamilyStore.LookupEntry(j+1);
|
||||||
if(!bf)
|
if(!bf)
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("Item (Entry: %u) has bag family bit set not listed in ItemBagFamily.dbc, remove bit",i);
|
sLog.outErrorDb("Item (Entry: %u) has bag family bit set not listed in ItemBagFamily.dbc, remove bit",i);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7527"
|
#define REVISION_NR "7528"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue