From db05bbf4c07284b086f81434972a137c6d0ec868 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 27 Jul 2017 21:33:09 +0300 Subject: [PATCH] Another dockingport syncing fix --- .../BarotraumaShared/Source/Items/Components/DockingPort.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/DockingPort.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/DockingPort.cs index 1aae8cf23..3b1ebb6f6 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/DockingPort.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/DockingPort.cs @@ -717,7 +717,7 @@ namespace Barotrauma.Items.Components { msg.Write(dockingTarget.item.ID); - if (hulls[0] != null && hulls[1] != null && gap != null) + if (hulls != null && hulls[0] != null && hulls[1] != null && gap != null) { msg.Write(true); msg.Write(hulls[0].ID);