]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mapblock_mesh.cpp
Merge pull request #34 from SpeedProg/master
[dragonfireclient.git] / src / mapblock_mesh.cpp
index d4921c2c5d166086deeb60d0f55319155ccddb03..447716d0059d44e53f6681af8c3dda1b8314b6aa 100644 (file)
@@ -64,11 +64,7 @@ void MeshMakeData::fill(u32 daynight_ratio, MapBlock *block)
                */
                
                // Get map
-               NodeContainer *parentcontainer = block->getParent();
-               // This will only work if the parent is the map
-               assert(parentcontainer->nodeContainerId() == NODECONTAINER_ID_MAP);
-               // OK, we have the map!
-               Map *map = (Map*)parentcontainer;
+               Map *map = block->getParent();
 
                for(u16 i=0; i<6; i++)
                {