diff --git a/sources/System/Collision/CollisionSystem.cpp b/sources/System/Collision/CollisionSystem.cpp index de4ef82b..4c91fc45 100644 --- a/sources/System/Collision/CollisionSystem.cpp +++ b/sources/System/Collision/CollisionSystem.cpp @@ -32,7 +32,7 @@ namespace BBM position += entity.getComponent().getVelocity(); Vector3f minA = Vector3f::min(position, position + col.bound); Vector3f maxA = Vector3f::max(position, position + col.bound); - for (WAL::Entity &other : _wal.scene->view().entities) { + for (WAL::Entity &other : this->getView().entities) { if (&other == &entity) continue; auto colB = other.getComponent();