Core/Misc: Refactor scripts to fix static analysis warnings
Eighth batch of fixes targeting 80 issues reported by Coverity
This commit is contained in:
1 parent
ea4dd2c8f4
commit
16a884d999
35 files changed
+547
-165
No files matched your search
@@ -421,6 +421,13 @@ class spell_dru_moonkin_form_passive : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dru_moonkin_form_passive_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dru_moonkin_form_passive_AuraScript()
|
||||
{
|
||||
absorbPct = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 absorbPct;
|
||||
|
||||
bool Load() override
|
||||
@@ -521,6 +528,13 @@ class spell_dru_primal_tenacity : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dru_primal_tenacity_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dru_primal_tenacity_AuraScript()
|
||||
{
|
||||
absorbPct = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 absorbPct;
|
||||
|
||||
bool Load() override
|
||||
@@ -613,6 +627,13 @@ class spell_dru_savage_defense : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dru_savage_defense_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dru_savage_defense_AuraScript()
|
||||
{
|
||||
absorbPct = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 absorbPct;
|
||||
|
||||
bool Load() override
|
||||
|
||||
Reference in new issue
Block a user