]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix DockingControl (#21238)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 25 Oct 2023 13:28:34 +0000 (00:28 +1100)
committerGitHub <noreply@github.com>
Wed, 25 Oct 2023 13:28:34 +0000 (00:28 +1100)
Content.Client/Shuttles/UI/DockingControl.cs

index 92d9959110988ec421ff1773e10669dec4371e97..c0ddeff86c23bee5b4abf5c4c94d685126f90f21 100644 (file)
@@ -89,7 +89,7 @@ public class DockingControl : Control
         // Draw the fixtures around the dock before drawing it
         if (_entManager.TryGetComponent<FixturesComponent>(GridEntity, out var fixtures))
         {
-            foreach (var (_, fixture) in fixtures.Fixtures)
+            foreach (var fixture in fixtures.Fixtures.Values)
             {
                 var poly = (PolygonShape) fixture.Shape;
 
@@ -151,7 +151,7 @@ public class DockingControl : Control
         var xformQuery = _entManager.GetEntityQuery<TransformComponent>();
 
         _grids.Clear();
-        _mapManager.FindGridsIntersecting(gridXform.MapID, new Box2(worldPos - RangeVector, worldPos + RangeVector));
+        _mapManager.FindGridsIntersecting(gridXform.MapID, new Box2(worldPos - RangeVector, worldPos + RangeVector), ref _grids);
 
         foreach (var grid in _grids)
         {