Minor code cleanup:

* Fix possible crash in OPvPCapturePoint::AddCapturePoint due to using null pointer in log output
* Correct damage for Gore (arithmetic operator has precedence over question operator)
* Correct SQL query that WaypointManager uses to count record number
* Declare Aura *aur in OPvPWintergrasp::HandleKill only once and then evaluate value instead of declaring twice and then evaluating

--HG--
branch : trunk
This commit is contained in:
Machiavelli committed 2009-06-10 19:41:53 +02:00
1 parent b0fa2172e3
commit 7445ddad05
4 files changed
+6 -5

No files matched your search

+3 -2
View File
@@ -363,7 +363,8 @@ void OPvPWintergrasp::HandleKill(Player *killer, Unit *victim)
// We handle promotion here because player should not get promotion if he has buff but do the kill outside the zone
if(victim->getLevel() >= 70)
{
if(Aura *aur = killer->GetAura(SPELL_RECRUIT))
Aura *aur;
if(aur = killer->GetAura(SPELL_RECRUIT))
{
if(aur->GetStackAmount() >= 5)
{
@@ -373,7 +374,7 @@ void OPvPWintergrasp::HandleKill(Player *killer, Unit *victim)
else
killer->CastSpell(killer, SPELL_RECRUIT, true);
}
else if(Aura *aur = killer->GetAura(SPELL_CORPORAL))
else if(aur = killer->GetAura(SPELL_CORPORAL))
{
if(aur->GetStackAmount() >= 5)
{