From ad42e7fbe8ebcf6bd29ca5df6e78c40ac7537675 Mon Sep 17 00:00:00 2001 From: Warpten Date: Wed, 24 Feb 2021 05:43:59 +0100 Subject: [PATCH] Core/Groups: use different variable for iterating over spell effects when initializing party member auras (#239) --- src/server/game/Server/Packets/PartyPackets.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/game/Server/Packets/PartyPackets.cpp b/src/server/game/Server/Packets/PartyPackets.cpp index c1cea864480..22f4125df30 100644 --- a/src/server/game/Server/Packets/PartyPackets.cpp +++ b/src/server/game/Server/Packets/PartyPackets.cpp @@ -122,9 +122,9 @@ void WorldPackets::Party::PartyMemberState::Initialize(Player const* player) if (aurApp->GetFlags() & AFLAG_ANY_EFFECT_AMOUNT_SENT) { - for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i) + for (uint32 j = 0; j < MAX_SPELL_EFFECTS; ++j) { - if (AuraEffect const* aurEff = aurApp->GetBase()->GetEffect(i)) + if (AuraEffect const* aurEff = aurApp->GetBase()->GetEffect(j)) aura.Points.push_back(aurEff->GetAmount()); else aura.Points.push_back(0); @@ -171,9 +171,9 @@ void WorldPackets::Party::PartyMemberState::Initialize(Player const* player) if (aurApp->GetFlags() & AFLAG_ANY_EFFECT_AMOUNT_SENT) { - for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i) + for (uint32 j = 0; j < MAX_SPELL_EFFECTS; ++j) { - if (AuraEffect const* aurEff = aurApp->GetBase()->GetEffect(i)) + if (AuraEffect const* aurEff = aurApp->GetBase()->GetEffect(j)) aura.Points.push_back(aurEff->GetAmount()); else aura.Points.push_back(0);