From baeb396ade08b462a892341ffa03cdb050c7e8fe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Jan 2002 19:00:55 +0000 Subject: [PATCH] Fixed copy constructor which was copying a matrix to unitialized memory. --- src/osg/Transform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/Transform.cpp b/src/osg/Transform.cpp index 4a99a6ea8..89c6a495c 100644 --- a/src/osg/Transform.cpp +++ b/src/osg/Transform.cpp @@ -5,7 +5,7 @@ using namespace osg; Transform::Transform() { _type = DYNAMIC; - _matrix = new osg::Matrix(); + _matrix = new Matrix; _matrix->makeIdentity(); } @@ -13,7 +13,7 @@ Transform::Transform() Transform::Transform(const Matrix& mat ) { _type = DYNAMIC; - (*_matrix) = mat; + _matrix = new Matrix(mat); }