From 672819d525c5393d1ee148a259465da825d06146 Mon Sep 17 00:00:00 2001 From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:15:02 -0700 Subject: [PATCH] Add missing return calls for positions and angles in SolveIsland (#5327) --- Robust.Shared/Physics/Systems/SharedPhysicsSystem.Island.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Robust.Shared/Physics/Systems/SharedPhysicsSystem.Island.cs b/Robust.Shared/Physics/Systems/SharedPhysicsSystem.Island.cs index 15bb8f02f3e..b084b694589 100644 --- a/Robust.Shared/Physics/Systems/SharedPhysicsSystem.Island.cs +++ b/Robust.Shared/Physics/Systems/SharedPhysicsSystem.Island.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using Microsoft.Extensions.ObjectPool; using Robust.Shared.GameObjects; -using Robust.Shared.Maths; using Robust.Shared.Physics.Components; using Robust.Shared.Physics.Dynamics; using Robust.Shared.Physics.Dynamics.Contacts; @@ -960,6 +959,8 @@ private void SolveIsland( } // Cleanup + ArrayPool.Shared.Return(positions); + ArrayPool.Shared.Return(angles); ArrayPool.Shared.Return(velocityConstraints); ArrayPool.Shared.Return(positionConstraints); } @@ -985,7 +986,7 @@ private void FinalisePositions(int start, int end, int offset, List