Core/Misc: Fix static analysis issues

This commit is contained in:
jackpoz
2016-08-22 14:17:24 +02:00
parent f183ed3c50
commit b7306f06f5
2 changed files with 1 additions and 4 deletions

View File

@@ -1426,7 +1426,7 @@ void Guardian::UpdateDamagePhysical(WeaponAttackType attType)
float maxdamage = ((base_value + weapon_maxdamage) * base_pct + total_value) * total_pct;
// Pet's base damage changes depending on happiness
if (IsHunterPet() && attType == BASE_ATTACK)
if (IsHunterPet())
{
switch (ToPet()->GetHappinessState())
{

View File

@@ -241,7 +241,6 @@ public:
boss_teron_gorefiendAI(Creature* creature) : BossAI(creature, DATA_TERON_GOREFIEND)
{
Initialize();
instance = creature->GetInstanceScript();
}
void Initialize()
@@ -259,8 +258,6 @@ public:
Done = false;
}
InstanceScript* instance;
uint32 IncinerateTimer;
uint32 SummonDoomBlossomTimer;
uint32 EnrageTimer;