Core/Misc: fix static analysis issues

CID 1373466
CID 1373481
CID 1373482
This commit is contained in:
ariel-
2017-04-09 19:18:22 -03:00
parent 214b8e53c5
commit e478434146
3 changed files with 4 additions and 10 deletions

View File

@@ -553,12 +553,6 @@ class spell_collecting_fallout : public SpellScriptLoader
{
PrepareSpellScript(spell_collecting_fallout_SpellScript);
bool Load() override
{
_spellFail = true;
return true;
}
void OnLaunch(SpellEffIndex effIndex)
{
// estimated 25% chance of success
@@ -580,7 +574,7 @@ class spell_collecting_fallout : public SpellScriptLoader
OnEffectLaunch += SpellEffectFn(spell_collecting_fallout_SpellScript::HandleFail, EFFECT_1, SPELL_EFFECT_TRIGGER_SPELL);
}
bool _spellFail;
bool _spellFail = true;
};
SpellScript* GetSpellScript() const override