diff --git a/shapes/Extrude.cc b/shapes/Extrude.cc index 2f9ef6d..04d9dde 100644 --- a/shapes/Extrude.cc +++ b/shapes/Extrude.cc @@ -90,9 +90,7 @@ Shape::IntersectionList Extrude::intersect(refptr _this, const Ray & ray) } } - vector m; - - sort(m.begin(), m.end(), IntersectListComparator(ray.getOrigin())); + sort(res.begin(), res.end(), IntersectListComparator(ray.getOrigin())); return res; }