diff options
Diffstat (limited to 'src/face_position_cache.cpp')
-rw-r--r-- | src/face_position_cache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/face_position_cache.cpp b/src/face_position_cache.cpp index f57e75da9..d2883a1b3 100644 --- a/src/face_position_cache.cpp +++ b/src/face_position_cache.cpp @@ -21,14 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "threading/mutex_auto_lock.h" -UNORDERED_MAP<u16, std::vector<v3s16> > FacePositionCache::cache; +std::unordered_map<u16, std::vector<v3s16>> FacePositionCache::cache; Mutex FacePositionCache::cache_mutex; // Calculate the borders of a "d-radius" cube const std::vector<v3s16> &FacePositionCache::getFacePositions(u16 d) { MutexAutoLock lock(cache_mutex); - UNORDERED_MAP<u16, std::vector<v3s16> >::iterator it = cache.find(d); + std::unordered_map<u16, std::vector<v3s16>>::const_iterator it = cache.find(d); if (it != cache.end()) return it->second; |