aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 8c45cc3313f..8a50bbda609 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -773,7 +773,7 @@ void Spell::SelectSpellTargets()
}
}
-void Spell::prepareDataForTriggerSystem(AuraEffect const * triggeredByAura)
+void Spell::prepareDataForTriggerSystem(AuraEffect const * /*triggeredByAura*/)
{
//==========================================================================================
// Now fill data for trigger system, need know:
@@ -1527,7 +1527,7 @@ bool Spell::UpdateChanneledTargetList()
needAuraMask &= needAliveTargetMask;
- float range;
+ float range = 0;
if (needAuraMask)
{
range = GetSpellMaxRange(m_spellInfo, IsPositiveSpell(m_spellInfo->Id));
@@ -3516,7 +3516,7 @@ void Spell::SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 ca
break;
case SPELL_FAILED_TOO_MANY_OF_ITEM:
{
- uint32 item;
+ uint32 item = 0;
for (int8 x=0;x < 3;x++)
if (spellInfo->EffectItemType[x])
item = spellInfo->EffectItemType[x];