From: frohlich Date: Sun, 8 Apr 2007 17:19:19 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9e288fce21bb157d54310be31fc3c246b74756c;p=flightgear.git Modified Files: src/FDM/groundcache.cxx: Csaba Halász: use wires[i].ends[k] instead of yet uninitialized end[k]. --- 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]; }