]> git.lizzy.rs Git - minetest.git/blobdiff - src/mapsector.cpp
src/client/tile.cpp: Fix reference counting
[minetest.git] / src / mapsector.cpp
index 0d40a659d4003e558b493bdec2606b4736a14072..3fe81dc902e13c943b9af7e990ff5e082d4cd75f 100644 (file)
@@ -85,7 +85,7 @@ MapBlock * MapSector::getBlockNoCreateNoEx(s16 y)
 
 MapBlock * MapSector::createBlankBlockNoInsert(s16 y)
 {
-       assert(getBlockBuffered(y) == NULL);
+       assert(getBlockBuffered(y) == NULL);    // Pre-condition
 
        v3s16 blockpos_map(m_pos.X, y, m_pos.Y);
        
@@ -133,7 +133,7 @@ void MapSector::deleteBlock(MapBlock *block)
        delete block;
 }
 
-void MapSector::getBlocks(std::list<MapBlock*> &dest)
+void MapSector::getBlocks(MapBlockVect &dest)
 {
        for(std::map<s16, MapBlock*>::iterator bi = m_blocks.begin();
                bi != m_blocks.end(); ++bi)