content changes for "refactors copy api to use ref" (#10180)

This commit is contained in:
Paul Ritter
2022-08-05 00:17:16 +02:00
committed by GitHub
parent 2f928cc8ab
commit 34fe04483f
4 changed files with 10 additions and 7 deletions

View File

@@ -59,7 +59,8 @@ namespace Content.Shared.Decals
public DecalGridComponent.DecalGridChunkCollection Copy(ISerializationManager serializationManager, DecalGridComponent.DecalGridChunkCollection source,
DecalGridComponent.DecalGridChunkCollection target, bool skipHook, ISerializationContext? context = null)
{
var dict = serializationManager.Copy(source.ChunkCollection, target.ChunkCollection, context, skipHook)!;
var dict = target.ChunkCollection;
serializationManager.Copy(source.ChunkCollection, ref dict, context, skipHook);
return new DecalGridComponent.DecalGridChunkCollection(dict) {NextUid = source.NextUid};
}
}