From b2bedfd485fcafb8c6d9cfc2a9e04c07f3d78d8c Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 22 Apr 2019 11:57:14 +0100 Subject: [PATCH] Fix typo in submodels commit --- src/AIModel/submodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AIModel/submodel.cxx b/src/AIModel/submodel.cxx index 283ed2ff1..fbf0cb3a4 100644 --- a/src/AIModel/submodel.cxx +++ b/src/AIModel/submodel.cxx @@ -721,7 +721,7 @@ SGVec3d FGSubmodelMgr::getCartOffsetPos(submodel* sm) const SGVec3d off = hlTrans.backTransform(offset); // Add the position offset of the user model to get the geocentered position - return SGVec3d::fromGeod(userpos); + off; + return SGVec3d::fromGeod(userpos) + off; } void FGSubmodelMgr::setOffsetPos(submodel* sm)