Skip to content

Commit 7b8e5e1

Browse files
committed
Update code comment to match context
1 parent ee1d602 commit 7b8e5e1

File tree

1 file changed

+1
-1
lines changed
  • com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections/NetworkList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public T this[int index]
618618

619619
var previousValue = m_List[index];
620620

621-
// Compare the Value being applied to the current value
621+
// Only trigger an event if the value has changed
622622
if (NetworkVariableSerialization<T>.AreEqual(ref previousValue, ref value))
623623
{
624624
return;

0 commit comments

Comments
 (0)