Core: Fix warnings with other way
This commit is contained in:
1 parent
c8e75073bf
commit
00a8a9ebb4
4 files changed
+12
-16
No files matched your search
@@ -682,11 +682,10 @@ void BattlefieldWG::PromotePlayer(Player* killer)
|
||||
{
|
||||
if (!m_isActive)
|
||||
return;
|
||||
Aura* aur = NULL;
|
||||
// Updating rank of player
|
||||
if (aur = killer->GetAura(SPELL_RECRUIT))
|
||||
if (Aura* auraRecruit = killer->GetAura(SPELL_RECRUIT))
|
||||
{
|
||||
if (aur->GetStackAmount() >= 5)
|
||||
if (auraRecruit->GetStackAmount() >= 5)
|
||||
{
|
||||
killer->RemoveAura(SPELL_RECRUIT);
|
||||
killer->CastSpell(killer, SPELL_CORPORAL, true);
|
||||
@@ -695,9 +694,9 @@ void BattlefieldWG::PromotePlayer(Player* killer)
|
||||
else
|
||||
killer->CastSpell(killer, SPELL_RECRUIT, true);
|
||||
}
|
||||
else if (aur = killer->GetAura(SPELL_CORPORAL))
|
||||
else if (Aura* auraCorporal = killer->GetAura(SPELL_CORPORAL))
|
||||
{
|
||||
if (aur->GetStackAmount() >= 5)
|
||||
if (auraCorporal->GetStackAmount() >= 5)
|
||||
{
|
||||
killer->RemoveAura(SPELL_CORPORAL);
|
||||
killer->CastSpell(killer, SPELL_LIEUTENANT, true);
|
||||
|
||||
@@ -400,7 +400,6 @@ bool Group::AddMember(Player* player)
|
||||
stmt->setUInt8(4, member.roles);
|
||||
|
||||
CharacterDatabase.Execute(stmt);
|
||||
|
||||
}
|
||||
|
||||
SendUpdate();
|
||||
|
||||
Reference in new issue
Block a user