From 5e50fc2961c010389fc908612afce783f7a19e7f Mon Sep 17 00:00:00 2001 From: amzn-sean <75276488+amzn-sean@users.noreply.github.com> Date: Tue, 27 Apr 2021 14:39:18 +0100 Subject: [PATCH] fix build failure --- AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py | 2 +- Gems/PhysX/Code/Source/PhysXCharacters/API/CharacterUtils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py index 50eb36e31d..39ed85a65a 100755 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py @@ -270,7 +270,7 @@ class TestAutomation(TestAutomationBase): self._run_test(request, workspace, editor, test_module) @pytest.mark.xfail( - reason="Something with the CryRenderer disabling is causeing this test to fail now.") + reason="Something with the CryRenderer disabling is causing this test to fail now.") @revert_physics_config def test_C13895144_Ragdoll_ChangeLevel(self, request, workspace, editor, launcher_platform): from . import C13895144_Ragdoll_ChangeLevel as test_module diff --git a/Gems/PhysX/Code/Source/PhysXCharacters/API/CharacterUtils.cpp b/Gems/PhysX/Code/Source/PhysXCharacters/API/CharacterUtils.cpp index fb55e8865d..d1502a0c65 100644 --- a/Gems/PhysX/Code/Source/PhysXCharacters/API/CharacterUtils.cpp +++ b/Gems/PhysX/Code/Source/PhysXCharacters/API/CharacterUtils.cpp @@ -197,7 +197,7 @@ namespace PhysX if (colliderNodeConfig) { AZStd::vector> shapes; - for (const auto [colliderConfig, shapeConfig] : colliderNodeConfig->m_shapes) + for (const auto& [colliderConfig, shapeConfig] : colliderNodeConfig->m_shapes) { if (colliderConfig == nullptr || shapeConfig == nullptr) {