From decc3d05c99c25e892a492a79d364e3fa3d8a7ea Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Mon, 12 May 2025 01:42:35 +0300 Subject: [PATCH] Update Quaternion default alignment to 16 --- public/mathlib/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/mathlib/vector.h b/public/mathlib/vector.h index 7398786c..320eda37 100644 --- a/public/mathlib/vector.h +++ b/public/mathlib/vector.h @@ -1689,7 +1689,7 @@ inline AngularImpulse RandomAngularImpulse( float minVal, float maxVal ) class RadianEuler; -class Quaternion // same data-layout as engine's vec4_t, +class ALIGN16 Quaternion // same data-layout as engine's vec4_t, { // which is a vec_t[4] public: inline Quaternion(void) { @@ -1720,7 +1720,7 @@ public: vec_t& operator[](int i); vec_t x, y, z, w; -}; +} ALIGN16_POST; //-----------------------------------------------------------------------------