- little bugfix
authorIngo Ruhnke <grumbel@gmx.de>
Mon, 26 Apr 2004 21:10:59 +0000 (21:10 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Mon, 26 Apr 2004 21:10:59 +0000 (21:10 +0000)
SVN-Revision: 769

src/collision.cpp

index 540e406..a9fccd4 100644 (file)
@@ -95,7 +95,7 @@ void* collision_func(const base_type& base, tiletestfunction function)
 
 static void* test_goal_tile_function(Tile* tile)
 {
-  if(tile->goal)
+  if(tile && tile->goal)
     return tile;
   return 0;
 }