diff options
author | Kirill Kirilenko <kirill@ultracoder.org> | 2015-01-17 13:12:14 +0100 |
---|---|---|
committer | Kirill Kirilenko <kirill@ultracoder.org> | 2015-01-17 13:20:03 +0100 |
commit | 3dc994f9dca109c0d039d6ba39480eaf67d7cc57 (patch) | |
tree | 4b6d2566a2cec6804a34809313dc35c2ee83629d /src/MobProximityCounter.cpp | |
parent | Fixed CppCheck: (performance) Function parameter should be passed by reference. (diff) | |
download | cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.gz cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.bz2 cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.lz cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.xz cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.tar.zst cuberite-3dc994f9dca109c0d039d6ba39480eaf67d7cc57.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MobProximityCounter.cpp | 2 |
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(); } |