summaryrefslogtreecommitdiffstats
path: root/src/MobProximityCounter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MobProximityCounter.cpp')
-rw-r--r--src/MobProximityCounter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MobProximityCounter.cpp b/src/MobProximityCounter.cpp
index 1bdac2f88..47d585954 100644
--- a/src/MobProximityCounter.cpp
+++ b/src/MobProximityCounter.cpp
@@ -63,7 +63,7 @@ cMobProximityCounter::sIterablePair cMobProximityCounter::getMobWithinThosesDist
{
if (toReturn.m_Begin == m_DistanceToMonster.end())
{
- if ((a_DistanceMin == 1) || (itr->first > a_DistanceMin))
+ if ((a_DistanceMin == 1.0) || (itr->first > a_DistanceMin))
{
toReturn.m_Begin = itr; // This is the first one with distance > a_DistanceMin;
}
@@ -71,7 +71,7 @@ cMobProximityCounter::sIterablePair cMobProximityCounter::getMobWithinThosesDist
if (toReturn.m_Begin != m_DistanceToMonster.end())
{
- if ((a_DistanceMax != 1) && (itr->first > a_DistanceMax))
+ if ((a_DistanceMax != 1.0) && (itr->first > a_DistanceMax))
{
toReturn.m_End = itr; // This is just after the last one with distance < a_DistanceMax
// Note : if we are not going through this, it's ok, toReturn.m_End will be end();