From fd70f4f2f040b64064676706e41d6da90c2b00db Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Tue, 17 Feb 2015 15:28:49 +0100 Subject: Replace std::list by std::vector into ClientMap::updateDrawList, Map::timerUpdate and ServerMap::save(). This will speedup the loop reading into those functions --- src/mapsector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapsector.cpp') diff --git a/src/mapsector.cpp b/src/mapsector.cpp index 0d40a659d..7bc4bd3a3 100644 --- a/src/mapsector.cpp +++ b/src/mapsector.cpp @@ -133,7 +133,7 @@ void MapSector::deleteBlock(MapBlock *block) delete block; } -void MapSector::getBlocks(std::list &dest) +void MapSector::getBlocks(MapBlockVect &dest) { for(std::map::iterator bi = m_blocks.begin(); bi != m_blocks.end(); ++bi) -- cgit v1.2.3