aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-19 09:26:37 +0200
committerSpp <none@none>2010-04-19 09:26:37 +0200
commit74dd02d024007c3a09219177fabfe9010b1bce63 (patch)
tree041286f1a0a20c9714199b03c60808d3b7291e48 /src/game/Spell.cpp
parentfdd8d2f3cc7108043f6bad036b994770f904866f (diff)
Remove LOTS of compile warnings
--HG-- branch : trunk
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];