yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #1930 from lioncash/common

common/quaternion: Ensure that w is always initialized
This commit is contained in:
bunnei 2018-12-23 14:35:29 -05:00 committed by GitHub
commit 52726342bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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};