From 150b0550539ad9978d7f4886de4b7aeefd10307c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 25 Jul 2002 21:58:53 +0000 Subject: [PATCH] Added missing return statement to if() block in Matrix::mult code. Bug spotted by Ray Conner. --- src/osg/Matrix.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osg/Matrix.cpp b/src/osg/Matrix.cpp index 81a443319..210e57919 100644 --- a/src/osg/Matrix.cpp +++ b/src/osg/Matrix.cpp @@ -153,6 +153,7 @@ void Matrix::mult( const Matrix& lhs, const Matrix& rhs ) if (&rhs==this) { preMult(lhs); + return; } // PRECONDITION: We assume neither &lhs nor &rhs == this