Fixed small error in mapnode.cpp (didn't cause any harm though)
authorPerttu Ahola <celeron55@gmail.com>
Thu, 21 Jul 2011 22:37:21 +0000 (01:37 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 21 Jul 2011 22:37:21 +0000 (01:37 +0300)
src/mapnode.cpp

index 391e593f9548b9715de7f733169e88a50eb44f78..b9dfd35b0c17a9a50f4fbc1a2eaa129464945f37 100644 (file)
@@ -142,8 +142,10 @@ void init_mapnode()
                Initially set every block to be shown as an unknown block.
                Don't touch CONTENT_IGNORE or CONTENT_AIR.
        */
-       for(u16 i=0; i<=253; i++)
+       for(u16 i=0; i<256; i++)
        {
+               if(i == CONTENT_IGNORE || i == CONTENT_AIR)
+                       continue;
                ContentFeatures *f = &g_content_features[i];
                f->setAllTextures("unknown_block.png");
                f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";