summaryrefslogtreecommitdiffstats
path: root/src/MobProximityCounter.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-17 19:52:26 +0100
committerMattes D <github@xoft.cz>2015-01-17 19:52:26 +0100
commit50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050 (patch)
tree7dabeb891ea4d1efc8cbc9c55d5530cf9e9d301a /src/MobProximityCounter.cpp
parentCMake: Check libs in submodules before configuring. (diff)
parentFixed CppCheck: (performance) Prefer prefix ++/-- operators for non-primitive types. (diff)
downloadcuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar
cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.gz
cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.bz2
cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.lz
cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.xz
cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.tar.zst
cuberite-50918a5214ed748f4ba4b0f4d36ddf7cb1ed3050.zip
Diffstat (limited to 'src/MobProximityCounter.cpp')
-rw-r--r--src/MobProximityCounter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MobProximityCounter.cpp b/src/MobProximityCounter.cpp
index 82ba771ff..cfd52440b 100644
--- a/src/MobProximityCounter.cpp
+++ b/src/MobProximityCounter.cpp
@@ -50,7 +50,7 @@ cMobProximityCounter::sIterablePair cMobProximityCounter::getMobWithinThosesDist
a_DistanceMin *= a_DistanceMin;// this is because is use square distance
a_DistanceMax *= a_DistanceMax;
- if (m_DistanceToMonster.size() <= 0)
+ if (m_DistanceToMonster.empty())
{
convertMaps();
}