diff options
author | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 12:25:07 +0200 |
---|---|---|
committer | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-08 12:25:07 +0200 |
commit | b4bb2553445d44dc8ca03bb33d801cf620f71898 (patch) | |
tree | 84df119295e37defdacd615b7b9f738b995a08d6 /source/MobProximityCounter.cpp | |
parent | replacing asserts by ASSERTs (diff) | |
download | cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.gz cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.bz2 cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.lz cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.xz cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.tar.zst cuberite-b4bb2553445d44dc8ca03bb33d801cf620f71898.zip |
Diffstat (limited to '')
-rw-r--r-- | source/MobProximityCounter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/MobProximityCounter.cpp b/source/MobProximityCounter.cpp index 3c5ec9153..583a71579 100644 --- a/source/MobProximityCounter.cpp +++ b/source/MobProximityCounter.cpp @@ -12,8 +12,8 @@ void cMobProximityCounter::CollectMob(cEntity& a_Monster, cChunk& a_Chunk, doubl tMonsterToDistance::iterator it = m_MonsterToDistance.find(&a_Monster); if (it == m_MonsterToDistance.end()) { - sDistanceAndChunk newDistanceAndChunck(a_Distance,a_Chunk); - std::pair<tMonsterToDistance::iterator,bool> result = m_MonsterToDistance.insert(tMonsterToDistance::value_type(&a_Monster,newDistanceAndChunck)); + sDistanceAndChunk newDistanceAndChunk(a_Distance,a_Chunk); + std::pair<tMonsterToDistance::iterator,bool> result = m_MonsterToDistance.insert(tMonsterToDistance::value_type(&a_Monster,newDistanceAndChunk)); if (!result.second) { ASSERT(!"A collected Monster was not found inside distance map using find(), but insert() said there already is a key for it"); |