From 80c57170e92365ab109de8a1a872772eaa569816 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 26 Oct 2023 00:28:34 +1100 Subject: [PATCH] Fix DockingControl (#21238) --- Content.Client/Shuttles/UI/DockingControl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/Shuttles/UI/DockingControl.cs b/Content.Client/Shuttles/UI/DockingControl.cs index 92d9959110..c0ddeff86c 100644 --- a/Content.Client/Shuttles/UI/DockingControl.cs +++ b/Content.Client/Shuttles/UI/DockingControl.cs @@ -89,7 +89,7 @@ public class DockingControl : Control // Draw the fixtures around the dock before drawing it if (_entManager.TryGetComponent(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(); _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) { -- 2.51.2