From f9e288fce21bb157d54310be31fc3c246b74756c Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 8 Apr 2007 17:19:19 +0000 Subject: [PATCH] =?UTF-8?q?Modified=20Files:=20=09src/FDM/groundcache.cxx:?= =?UTF-8?q?=20Csaba=20Hal=C3=A1sz:=20use=20wires[i].ends[k]=20instead=20?= =?UTF-8?q?=09of=20yet=20uninitialized=20end[k].?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/FDM/groundcache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/groundcache.cxx b/src/FDM/groundcache.cxx index bbddb3f17..4424e5fdd 100644 --- a/src/FDM/groundcache.cxx +++ b/src/FDM/groundcache.cxx @@ -713,7 +713,7 @@ bool FGGroundCache::get_wire_ends(double t, SGVec3d end[2], SGVec3d vel[2]) for (size_t i = 0; i < sz; ++i) { if (wires[i].wire_id == wire_id) { for (size_t k = 0; k < 2; ++k) { - SGVec3d pivotoff = end[k] - wires[i].rotation_pivot; + SGVec3d pivotoff = wires[i].ends[k] - wires[i].rotation_pivot; vel[k] = wires[i].velocity + cross(wires[i].rotation, pivotoff); end[k] = wires[i].ends[k] + t*vel[k]; }