From e96834fcc62afadd0106bd0ebceea904bd2b5cbb Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Tue, 22 Nov 2016 14:36:28 +0100 Subject: [PATCH] Fix an error --- simgear/math/SGMatrix.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/math/SGMatrix.hxx b/simgear/math/SGMatrix.hxx index c796c336..8b9756cf 100644 --- a/simgear/math/SGMatrix.hxx +++ b/simgear/math/SGMatrix.hxx @@ -300,7 +300,7 @@ inline SGMatrix operator-(SGMatrix m) { - for (unsigned i = 0; i < SGMatrix::nRows; ++i) + for (unsigned i = 0; i < SGMatrix::nEnts; ++i) m[i] = -m[i]; return m; }