File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3278,7 +3278,6 @@ public void Deserialize(FastBufferReader reader)
32783278 var readSize = 0 ;
32793279 readSize += HasTransform ? FastBufferWriter . GetWriteSize < TransformData > ( ) : 0 ;
32803280 readSize += FastBufferWriter . GetWriteSize < int > ( ) ;
3281- readSize += FastBufferWriter . GetWriteSize < int > ( ) ;
32823281
32833282 // Try to begin reading the remaining bytes
32843283 if ( ! reader . TryBeginRead ( readSize ) )
@@ -3297,7 +3296,7 @@ public void Deserialize(FastBufferReader reader)
32973296
32983297 // Read the size of the remaining synchronization data
32993298 // This data will be read in AddSceneObject()
3300- reader . ReadValue ( out SynchronizationDataSize ) ;
3299+ reader . ReadValueSafe ( out SynchronizationDataSize ) ;
33013300 }
33023301 }
33033302
You can’t perform that action at this time.
0 commit comments