Skip to content

Commit 15db901

Browse files
committed
not necessary to call GetType() twice
1 parent 06548a2 commit 15db901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Plugins/Colyseus/DeltaListener/Compare.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected static void Generate(IndexedDictionary<string, object> mirror, Indexed
6464
if (
6565
!oldValType.IsPrimitive && oldValType != typeof(string) &&
6666
!newValType.IsPrimitive && oldValType != typeof(string) &&
67-
Object.ReferenceEquals(oldVal.GetType(), newVal.GetType())
67+
Object.ReferenceEquals(oldValType, newValType)
6868
)
6969
{
7070
List<string> deeperPath = new List<string>(path);

0 commit comments

Comments
 (0)