]> git.lizzy.rs Git - minetest.git/commitdiff
hopefully fixed a bit more
authorPerttu Ahola <celeron55@gmail.com>
Sun, 10 Apr 2011 21:24:32 +0000 (00:24 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 10 Apr 2011 21:24:32 +0000 (00:24 +0300)
src/map.cpp

index ff823af94aaf05bf24da6d4650f17f515407134f..2d16710b1812cad33a25617557e662cf19aca675 100644 (file)
@@ -5136,7 +5136,8 @@ MapSector* ServerMap::loadSectorMeta(std::string dirname)
                                        <<fullpath<<" doesn't exist but directory does."
                                        <<" Continuing with a sector with no metadata."
                                        <<std::endl;
-                       sector = createSector(p2d);
+                       sector = new ServerMapSector(this, p2d);
+                       m_sectors.insert(p2d, sector);
                }
                else
                        throw FileNotGoodException("Cannot open sector metafile");