]> git.tdb.fi Git - libs/math.git/commitdiff
Fix incorrect member access operator
authorMikko Rasa <tdb@tdb.fi>
Sat, 25 Jan 2025 23:59:00 +0000 (01:59 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 25 Jan 2025 23:59:13 +0000 (01:59 +0200)
source/geometry/extrudedshape.h

index 7fe1ab858143daa0265187686f27a98e4f1be827..027e4f5e61723de2e36b5063e16a59bebe42e0fe 100644 (file)
@@ -50,7 +50,7 @@ inline ExtrudedShape<T, D>::ExtrudedShape(const Shape<T, D-1> &b, T l):
 
 template<typename T, unsigned D>
 inline ExtrudedShape<T, D>::ExtrudedShape(const ExtrudedShape<T, D> &other):
-       base(other.base.clone()),
+       base(other.base->clone()),
        length(other.length)
 { }
 
@@ -58,7 +58,7 @@ template<typename T, unsigned D>
 inline ExtrudedShape<T, D> &ExtrudedShape<T, D>::operator=(const ExtrudedShape<T, D> &other)
 {
        delete base;
-       base = other.base.clone();
+       base = other.base->clone();
        length = other.length;
 }