Hello,
me again
I can not make this code work, i do not know why, it looks ok, and i did search and compare my code with what i was able to find on net and can not find what is wrong with it.
If any1 can see where is the problem i would be grateful.
void WOWBase::EnumAuras( UINT32 BaseAddress )
{
int auraCount1 = m_wowMem.ReadUINT32( BaseAddress + UnitBaseGetUnitAura_AURA_COUNT_1 );
int auraCount2 = m_wowMem.ReadUINT32( BaseAddress + UnitBaseGetUnitAura_AURA_COUNT_2 );
int AuraCount = auraCount1 ? auraCount1 : auraCount2;
UINT32 TableBase = m_wowMem.ReadUINT32(BaseAddress + (auraCount1 ? UnitBaseGetUnitAura_AURA_TABLE_1 : UnitBaseGetUnitAura_AURA_TABLE_2));
UINT32 spellID;
for (int i = 0; i < AuraCount; ++i)
{
spellID = m_wowMem.ReadUINT32(TableBase + i * UnitBaseGetUnitAura_AURA_SIZE + UnitBaseGetUnitAura_AURA_SPELL_ID ); // Offsets::AuraOffset);
int t = 0;
}
}
Kajko