Browse Source

Fix warning as error using AZStd::pair (#10)

Signed-off-by: moraaar <[email protected]>
moraaar 2 years ago
parent
commit
f4f0451f6b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Gem/Source/PhysXJointTestComponent.cpp

+ 3 - 3
Gem/Source/PhysXJointTestComponent.cpp

@@ -50,9 +50,9 @@ namespace TestScene
 
   void ImGuiJointDemo::OnImGuiUpdate()
   {
-    float velocity{0};
-    float position{0};
-    AZStd::pair<float, float> limits{0,0};
+    float velocity{0.0f};
+    float position{0.0f};
+    AZStd::pair<float, float> limits{0.0f,0.0f};
     auto* component1 = GetEntity()->FindComponent<PhysX::HingeJointComponent>();
     auto* component2 = GetEntity()->FindComponent<PhysX::PrismaticJointComponent>();
     auto componentId (AZ::InvalidComponentId);