content changes for "refactors copy api to use ref" (#10180)
This commit is contained in:
@@ -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};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user