aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-10 19:41:53 +0200
committerMachiavelli <none@none>2009-06-10 19:41:53 +0200
commit7445ddad0520fd9a55234a0c22dca56e4e7c00d0 (patch)
treee28cc60fd95bc9c8c8cb0812089301fc3c484dce /src/game/SpellEffects.cpp
parentb0fa2172e3df7bd098df5f6144d8231e1d98c4d9 (diff)
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
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index ae84b6c4ff9..8d6d0bc7ae8 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -321,7 +321,7 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
//Gore
if(m_spellInfo->SpellIconID == 2269 )
{
- damage+= rand()%2 ? damage : 0;
+ damage += (rand()%2 ? damage : 0);
}
// Meteor like spells (divided damage to targets)