diff options
author | bunnei <bunneidev@gmail.com> | 2018-12-23 14:35:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-23 14:35:29 -0500 |
commit | 52726342bd7b030b1a79e577a637d8a325d21dc8 (patch) | |
tree | c55ff70b3ee9ada73eca20e4ab5fa9a4649a5e6f | |
parent | f95f6c7d86af9857cb737a741fc847bf2c5d8413 (diff) | |
parent | acddf16e57b7673a413fd0ecde618246d8539c5b (diff) |
Merge pull request #1930 from lioncash/common
common/quaternion: Ensure that w is always initialized
-rw-r--r-- | src/common/quaternion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/quaternion.h b/src/common/quaternion.h index ea39298c1..c528c0b68 100644 --- a/src/common/quaternion.h +++ b/src/common/quaternion.h @@ -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}; |