diff --git a/sdlpp/sdlpp_renderobject.cpp b/sdlpp/sdlpp_renderobject.cpp index 0058891..4cd1d5c 100644 --- a/sdlpp/sdlpp_renderobject.cpp +++ b/sdlpp/sdlpp_renderobject.cpp @@ -55,8 +55,10 @@ RenderObject::colidesWith( const RenderObject &other ) const { std::vector< uint64_t > ret = {}; for ( const auto &x : collisions ) { for ( const auto &y : other.getCollisions() ) { - if ( x->colidesWith( *y ) ) + if ( x->colidesWith( *y ) ) { ret.push_back( x->getId() ); + break; + } } } return ret;