common/quaternion: Ensure that w is always initialized

Previously xyz was always being zero initialized due to its constructor,
but w wasn't. Ensures that we always have a deterministic initial state.
This commit is contained in:
Lioncash committed 2018-12-21 15:25:31 -05:00
1 parent e75e8b9580
commit acddf16e57
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ template <typename T>
class Quaternion {
public:
Math::Vec3<T> xyz;
T w;
T w{};
Quaternion<decltype(-T{})> Inverse() const {
return {-xyz, w};