mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity
(cherry picked from commit c899944981)
Conflicts:
src/server/game/Entities/Player/Player.cpp
src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp
This commit is contained in:
@@ -1259,7 +1259,7 @@ class spell_putricide_mutated_plague : public SpellScriptLoader
|
||||
return;
|
||||
|
||||
uint32 triggerSpell = GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell;
|
||||
SpellInfo const* spell = sSpellMgr->GetSpellInfo(triggerSpell);
|
||||
SpellInfo const* spell = sSpellMgr->EnsureSpellInfo(triggerSpell);
|
||||
spell = sSpellMgr->GetSpellForDifficultyFromSpell(spell, caster);
|
||||
|
||||
int32 damage = spell->Effects[EFFECT_0].CalcValue(caster);
|
||||
|
||||
Reference in New Issue
Block a user