aboutsummaryrefslogtreecommitdiff
path: root/src/game/UnitAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-23 00:46:21 -0500
committermegamage <none@none>2009-08-23 00:46:21 -0500
commitb35fe879ad812947a50666ccc41d3603227291f9 (patch)
treec3a69fe263aac3e6e9ca66b0a406a20c65ba23fe /src/game/UnitAI.cpp
parentdb066046df2272b98f478a7072067a41fe69905f (diff)
*Some update of spell target selection.
--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 4ba2f94e4db..50936bff001 100644
--- a/src/game/UnitAI.cpp
+++ b/src/game/UnitAI.cpp
@@ -113,7 +113,7 @@ struct TargetDistanceOrder : public std::binary_function<const Unit *, const Uni
// functor for operator ">"
bool operator()(const Unit * _Left, const Unit * _Right) const
{
- return (me->GetDistanceSq(_Left) < me->GetDistanceSq(_Right));
+ return (me->GetExactDistSq(_Left) < me->GetExactDistSq(_Right));
}
};