diff --git a/src/osgAnimation/StatsHandler.cpp b/src/osgAnimation/StatsHandler.cpp index a62a167ec..3387beb27 100644 --- a/src/osgAnimation/StatsHandler.cpp +++ b/src/osgAnimation/StatsHandler.cpp @@ -90,7 +90,7 @@ struct StatsGraph : public osg::MatrixTransform void changeYposition(float y) { - osg::Vec3 _pos = getMatrix().getTrans(); + _pos = getMatrix().getTrans(); _pos[1] = y - _height; setMatrix(osg::Matrix::translate(_pos)); }