From: Ingo Ruhnke Date: Mon, 26 Apr 2004 21:10:59 +0000 (+0000) Subject: - little bugfix X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=367034f9efcbf83922b49b140e796205a7bd0b18;p=supertux.git - little bugfix SVN-Revision: 769 --- diff --git a/src/collision.cpp b/src/collision.cpp index 540e40634..a9fccd4c5 100644 --- a/src/collision.cpp +++ b/src/collision.cpp @@ -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; }