From 4bb7cac13ebde225594f1c0ac753152803bfcf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Thu, 20 Jul 2023 07:15:59 +0200 Subject: [PATCH] linux -Wmaybe-uninitialized warning fix --- WickedEngine/wiPhysics_Bullet.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/WickedEngine/wiPhysics_Bullet.cpp b/WickedEngine/wiPhysics_Bullet.cpp index 40db59f35..c895bc2eb 100644 --- a/WickedEngine/wiPhysics_Bullet.cpp +++ b/WickedEngine/wiPhysics_Bullet.cpp @@ -280,10 +280,12 @@ namespace wi::physics mass = 0; } - XMVECTOR SCA, ROT, TRA; + XMVECTOR SCA = {}; + XMVECTOR ROT = {}; + XMVECTOR TRA = {}; XMMatrixDecompose(&SCA, &ROT, &TRA, XMLoadFloat4x4(&transform.world)); - XMFLOAT4 rot; - XMFLOAT3 tra; + XMFLOAT4 rot = {}; + XMFLOAT3 tra = {}; XMStoreFloat4(&rot, ROT); XMStoreFloat3(&tra, TRA);