Fixed connectionpanel syncing. Closes #575
This commit is contained in:
@@ -165,9 +165,8 @@ namespace Barotrauma.Items.Components
|
|||||||
for (int i = 0; i < Connections.Count; i++)
|
for (int i = 0; i < Connections.Count; i++)
|
||||||
{
|
{
|
||||||
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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user