Skip to content
Snippets Groups Projects
Unverified Commit 52726342 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1930 from lioncash/common

common/quaternion: Ensure that w is always initialized
parents f95f6c7d acddf16e
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ template <typename T> ...@@ -12,7 +12,7 @@ template <typename T>
class Quaternion { class Quaternion {
public: public:
Math::Vec3<T> xyz; Math::Vec3<T> xyz;
T w; T w{};
Quaternion<decltype(-T{})> Inverse() const { Quaternion<decltype(-T{})> Inverse() const {
return {-xyz, w}; return {-xyz, w};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment