aboutsummaryrefslogtreecommitdiff
path: root/src/game/UnitAI.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/UnitAI.cpp
parentfdd8d2f3cc7108043f6bad036b994770f904866f (diff)
Remove LOTS of compile warnings
--HG-- branch : trunk
Diffstat (limited to 'src/game/UnitAI.cpp')
-rw-r--r--src/game/UnitAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp
index c04a698048b..a8185453491 100644
--- a/src/game/UnitAI.cpp
+++ b/src/game/UnitAI.cpp
@@ -217,7 +217,7 @@ void UnitAI::DoCast(uint32 spellId)
{
const SpellEntry * spellInfo = GetSpellStore()->LookupEntry(spellId);
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR_EX3_PLAYERS_ONLY;
- float range = GetSpellMaxRange(spellInfo, false);
+ //float range = GetSpellMaxRange(spellInfo, false);
target = SelectTarget(SELECT_TARGET_RANDOM, 0, GetSpellMaxRange(spellInfo, false), playerOnly);
break;
}