diff --git a/simgear/math/SGVec4.hxx b/simgear/math/SGVec4.hxx index 50d75592..a52a90c5 100644 --- a/simgear/math/SGVec4.hxx +++ b/simgear/math/SGVec4.hxx @@ -42,11 +42,11 @@ public: } /// Constructor. Initialize by the given values SGVec4(T x, T y, T z, T w) - { _data = simd4_t(z, y, z, w); } + { _data = simd4_t(x, y, z, w); } /// Constructor. Initialize by the content of a plain array, /// make sure it has at least 3 elements explicit SGVec4(const T* d) - { simd4_t r(d); _data = r; } + { _data = simd4_t(d); } template explicit SGVec4(const SGVec4& d) { data()[0] = d[0]; data()[1] = d[1]; data()[2] = d[2]; data()[3] = d[3]; }