aboutsummaryrefslogtreecommitdiff
path: root/src/mapsector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapsector.cpp')
-rw-r--r--src/mapsector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapsector.cpp b/src/mapsector.cpp
index 3eefa5410..e6cc32e28 100644
--- a/src/mapsector.cpp
+++ b/src/mapsector.cpp
@@ -124,6 +124,7 @@ void MapSector::deleteBlock(MapBlock *block)
void MapSector::getBlocks(MapBlockVect &dest)
{
+ dest.reserve(dest.size() + m_blocks.size());
for (auto &block : m_blocks) {
dest.push_back(block.second);
}