Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

common/quaternion: Ensure that w is always initialized

Lioncash8734a27b8dbe
diff --git a/src/common/quaternion.h b/src/common/quaternion.h
index ea39298c1f..c528c0b688 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};