Now the growings animation looks pretty cool :)
[supertux.git] / src / collision.cpp
index e36327f..ad1cc80 100644 (file)
@@ -55,7 +55,7 @@ bool collision_object_map(const base_type& base)
   for(int x = starttilex; x*32 < max_x; ++x) {
     for(int y = starttiley; y*32 < max_y; ++y) {
       Tile* tile = tilemap.get_tile(x, y);
-      if(tile->attributes & Tile::SOLID)
+      if(tile && tile->attributes & Tile::SOLID)
         return true;
     }
   }