aboutsummaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorRichard Try <bazrovstepan@gmail.com>2022-05-23 23:50:49 +0300
committerGitHub <noreply@github.com>2022-05-23 22:50:49 +0200
commite16a470d59069692d654f5c1529ab313a01ded67 (patch)
treeebba085dc9587b3e51fa0fca24842617fcd2c8de /src/map.h
parent367a2d4b29a4865a8f2d5b9717786a8660f226bc (diff)
downloadminetest-e16a470d59069692d654f5c1529ab313a01ded67.tar.gz
minetest-e16a470d59069692d654f5c1529ab313a01ded67.tar.bz2
minetest-e16a470d59069692d654f5c1529ab313a01ded67.zip
Use unordered_map instead of map for MapSectors
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.h b/src/map.h
index 1e5499586..931764215 100644
--- a/src/map.h
+++ b/src/map.h
@@ -266,7 +266,7 @@ protected:
std::set<MapEventReceiver*> m_event_receivers;
- std::map<v2s16, MapSector*> m_sectors;
+ std::unordered_map<v2s16, MapSector*> m_sectors;
// Be sure to set this to NULL when the cached sector is deleted
MapSector *m_sector_cache = nullptr;