From 2f8c93508f7f870222454cc31c6f02dffb09c558 Mon Sep 17 00:00:00 2001 From: jonschz Date: Fri, 3 May 2024 06:47:45 +0200 Subject: [PATCH] fix CI errors --- LEGO1/realtime/matrix.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LEGO1/realtime/matrix.h b/LEGO1/realtime/matrix.h index 96f829ce..87e996e2 100644 --- a/LEGO1/realtime/matrix.h +++ b/LEGO1/realtime/matrix.h @@ -170,10 +170,12 @@ inline void Matrix4::ToQuaternion(Vector4& p_outQuat) // Largest element along the trace int largest = 0; - if (m_data[0][0] < m_data[1][1]) + if (m_data[0][0] < m_data[1][1]) { largest = 1; - if (*Element(largest, largest) < m_data[2][2]) + } + if (*Element(largest, largest) < m_data[2][2]) { largest = 2; + } int next = rotateIndex[largest]; int nextNext = rotateIndex[next];