diff options
| author | Shauren <shauren.trinity@gmail.com> | 2013-05-17 21:30:02 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2013-05-17 21:30:02 +0200 |
| commit | 7d4670341387568e89d21a8e0d702230e0ab962d (patch) | |
| tree | f6e409bb8899dc546fcf96a53abbd5bb025bda43 /src/server/game/Spells/SpellEffects.cpp | |
| parent | 8be181c7e60daf9833044da61b379c2136892c37 (diff) | |
Core/Misc: Another batch of fixes for issues found by static analysis
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index e96156d85b5..db6263a8062 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -5695,7 +5695,7 @@ void Spell::EffectActivateRune(SpellEffIndex effIndex) if ((player->GetRuneCooldown(l) && player->GetCurrentRune(l) == RuneType(m_spellInfo->Effects[effIndex].MiscValueB)) && (player->GetRuneCooldown(l+1) && player->GetCurrentRune(l+1) == RuneType(m_spellInfo->Effects[effIndex].MiscValueB))) { // Should always update the rune with the lowest cd - if (player->GetRuneCooldown(l) >= player->GetRuneCooldown(l+1)) + if (l + 1 < MAX_RUNES && player->GetRuneCooldown(l) >= player->GetRuneCooldown(l+1)) l++; player->SetRuneCooldown(l, 0); --count; |
