aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index e2191f9e1..7a5296bac 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -3371,7 +3371,10 @@ void ServerMap::listAllLoadableBlocks(std::list<v3s16> &dst)
errorstream<<"Map::listAllLoadableBlocks(): Result will be missing "
<<"all blocks that are stored in flat files"<<std::endl;
}
- dbase->listAllLoadableBlocks(dst);
+ core::list<v3s16> dst_;
+ dbase->listAllLoadableBlocks(dst_);
+ for(core::list<v3s16>::Iterator i = dst_.begin(); i != dst_.end(); ++i)
+ dst.push_back(*i);
}
void ServerMap::listAllLoadedBlocks(std::list<v3s16> &dst)