mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	common/quaternion: Ensure that w is always initialized
Previously xyz was always being zero initialized due to its constructor, but w wasn't. Ensures that we always have a deterministic initial state.
This commit is contained in:
		
							parent
							
								
									e75e8b9580
								
							
						
					
					
						commit
						acddf16e57
					
				@ -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};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user