From 51bf5acdd865a85885f717160251b30a72fd972a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 26 Jan 2025 01:59:00 +0200 Subject: [PATCH] Fix incorrect member access operator --- source/geometry/extrudedshape.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/geometry/extrudedshape.h b/source/geometry/extrudedshape.h index 7fe1ab8..027e4f5 100644 --- a/source/geometry/extrudedshape.h +++ b/source/geometry/extrudedshape.h @@ -50,7 +50,7 @@ inline ExtrudedShape::ExtrudedShape(const Shape &b, T l): template inline ExtrudedShape::ExtrudedShape(const ExtrudedShape &other): - base(other.base.clone()), + base(other.base->clone()), length(other.length) { } @@ -58,7 +58,7 @@ template inline ExtrudedShape &ExtrudedShape::operator=(const ExtrudedShape &other) { delete base; - base = other.base.clone(); + base = other.base->clone(); length = other.length; } -- 2.45.2