From: Matthias Braun Date: Thu, 29 Apr 2004 13:54:21 +0000 (+0000) Subject: apparently we get a 0 tile from time to time, no idea yet why X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=323843b19d88f79845bbdf4bebe8eb446b5d0b44;p=supertux.git apparently we get a 0 tile from time to time, no idea yet why SVN-Revision: 842 --- diff --git a/src/collision.cpp b/src/collision.cpp index fc7a902a2..2f41fed3f 100644 --- a/src/collision.cpp +++ b/src/collision.cpp @@ -56,7 +56,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 = tilemanager.get(level.get_tile_at(x, y)); - if(tile->solid) + if(tile && tile->solid) return true; } }