From: Mikko Rasa Date: Sat, 25 Jan 2025 23:59:00 +0000 (+0200) Subject: Fix incorrect member access operator X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=51bf5acdd865a85885f717160251b30a72fd972a;p=libs%2Fmath.git Fix incorrect member access operator --- 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; }