소스 검색

Merge pull request #1930 from lioncash/common

common/quaternion: Ensure that w is always initialized
bunnei 7 년 전
부모
커밋
52726342bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/common/quaternion.h

+ 1 - 1
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};