mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
fix(Core/Misc): all GCC warnings (#3457)
This commit is contained in:
@@ -593,6 +593,7 @@ void AuraEffect::CalculatePeriodic(Unit* caster, bool create, bool load)
|
||||
// 3 spells have no amplitude set
|
||||
if (!m_amplitude)
|
||||
m_amplitude = 1 * IN_MILLISECONDS;
|
||||
[[fallthrough]]; // TODO: Not sure whether the fallthrough was a mistake (forgetting a break) or intended. This should be double-checked.
|
||||
case SPELL_AURA_PERIODIC_DAMAGE:
|
||||
case SPELL_AURA_PERIODIC_HEAL:
|
||||
case SPELL_AURA_OBS_MOD_HEALTH:
|
||||
@@ -3598,7 +3599,7 @@ void AuraEffect::HandleModMechanicImmunity(AuraApplication const* aurApp, uint8
|
||||
return;
|
||||
|
||||
Unit* target = aurApp->GetTarget();
|
||||
uint32 mechanic;
|
||||
uint32 mechanic = 0;
|
||||
|
||||
switch (GetId())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user