Fixed connectionpanel syncing. Closes #575

This commit is contained in:
Joonas Rikkonen
2018-08-06 10:50:32 +03:00
parent cafcc76064
commit 141b77f838
@@ -166,8 +166,7 @@ namespace Barotrauma.Items.Components
{ {
wires[i] = new List<Wire>(); wires[i] = new List<Wire>();
int wireCount = msg.ReadRangedInteger(0, Connection.MaxLinked); for (int j = 0; j < Connection.MaxLinked; j++)
for (int j = 0; j < wireCount; j++)
{ {
ushort wireId = msg.ReadUInt16(); ushort wireId = msg.ReadUInt16();