X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollision.cpp;h=2466d8c388f31d7b6244a6ede4c6871935d78c86;hb=daa1d5e06caab3b3903afdd36466614a1ee74acf;hp=2f41fed3fccd5baf6b703fa53b666efed60153ce;hpb=323843b19d88f79845bbdf4bebe8eb446b5d0b44;p=supertux.git diff --git a/src/collision.cpp b/src/collision.cpp index 2f41fed3f..2466d8c38 100644 --- a/src/collision.cpp +++ b/src/collision.cpp @@ -44,6 +44,9 @@ bool rectcollision_offset(const base_type& one, const base_type& two, float off_ bool collision_object_map(const base_type& base) { + if(!World::current()) + return false; + const Level& level = *World::current()->get_level(); TileManager& tilemanager = *TileManager::instance();