1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use unordered_map instead of map for MapSectors

This commit is contained in:
Richard Try 2022-05-23 23:50:49 +03:00 committed by GitHub
parent 367a2d4b29
commit e16a470d59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ MapSector * Map::getSectorNoGenerateNoLock(v2s16 p)
return sector;
}
std::map<v2s16, MapSector*>::iterator n = m_sectors.find(p);
auto n = m_sectors.find(p);
if (n == m_sectors.end())
return NULL;