diff --git a/sdlpp/sdlpp_scene.cpp b/sdlpp/sdlpp_scene.cpp index 90f831f..55b3e8b 100644 --- a/sdlpp/sdlpp_scene.cpp +++ b/sdlpp/sdlpp_scene.cpp @@ -119,6 +119,9 @@ Scene::getCollisions( RenderObject &r ) { return {}; std::vector< std::pair< uint64_t, std::shared_ptr< RenderObject > > > ret{}; for ( const auto &x : collision_objects ) { + if(x.get() == &r) { + continue; + } for ( auto id : r.colidesWith( *x ) ) { ret.emplace_back( id, x ); }