diff options
| author | 2018-12-23 14:35:29 -0500 | |
|---|---|---|
| committer | 2018-12-23 14:35:29 -0500 | |
| commit | 52726342bd7b030b1a79e577a637d8a325d21dc8 (patch) | |
| tree | c55ff70b3ee9ada73eca20e4ab5fa9a4649a5e6f /src | |
| parent | Merge pull request #1781 from DarkLordZach/applet-profile-select (diff) | |
| parent | common/quaternion: Ensure that w is always initialized (diff) | |
| download | yuzu-52726342bd7b030b1a79e577a637d8a325d21dc8.tar.gz yuzu-52726342bd7b030b1a79e577a637d8a325d21dc8.tar.xz yuzu-52726342bd7b030b1a79e577a637d8a325d21dc8.zip | |
Merge pull request #1930 from lioncash/common
common/quaternion: Ensure that w is always initialized
Diffstat (limited to 'src')
| -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> | |||
| 12 | class Quaternion { | 12 | class Quaternion { |
| 13 | public: | 13 | public: |
| 14 | Math::Vec3<T> xyz; | 14 | Math::Vec3<T> xyz; |
| 15 | T w; | 15 | T w{}; |
| 16 | 16 | ||
| 17 | Quaternion<decltype(-T{})> Inverse() const { | 17 | Quaternion<decltype(-T{})> Inverse() const { |
| 18 | return {-xyz, w}; | 18 | return {-xyz, w}; |