From 141b77f838c5c9483bed080f98fdc7f7b4a9f5fb Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 6 Aug 2018 10:50:32 +0300 Subject: [PATCH] Fixed connectionpanel syncing. Closes #575 --- .../Source/Items/Components/Signal/ConnectionPanel.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/ConnectionPanel.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/ConnectionPanel.cs index 159372397..aec56368e 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/ConnectionPanel.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/ConnectionPanel.cs @@ -165,9 +165,8 @@ namespace Barotrauma.Items.Components for (int i = 0; i < Connections.Count; i++) { wires[i] = new List(); - - int wireCount = msg.ReadRangedInteger(0, Connection.MaxLinked); - for (int j = 0; j < wireCount; j++) + + for (int j = 0; j < Connection.MaxLinked; j++) { ushort wireId = msg.ReadUInt16();