Skip to content

Commit c27e4c3

Browse files
committed
Fixed channel map
1 parent e9550b5 commit c27e4c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,8 @@ internal void NetworkedVarInit()
978978
channelsForVarGroups.Add(channel);
979979
secondLevelCounter++;
980980
}
981+
if (firstLevelIndex[channel] >= channelMappedVarIndexes.Count)
982+
channelMappedVarIndexes.Add(new HashSet<int>());
981983
channelMappedVarIndexes[firstLevelIndex[channel]].Add(i);
982984
}
983985
}

0 commit comments

Comments
 (0)