linux -Wmaybe-uninitialized warning fix

This commit is contained in:
Turánszki János
2023-07-20 07:15:59 +02:00
parent a3ff9420a6
commit 4bb7cac13e
+5 -3
View File
@@ -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);