mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-12 03:52:53 +00:00
Merge pull request #1930 from lioncash/common
common/quaternion: Ensure that w is always initialized
This commit is contained in:
commit
52726342bd
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue