diff options
Diffstat (limited to 'csharp/src/Ice/Reference.cs')
-rw-r--r-- | csharp/src/Ice/Reference.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp/src/Ice/Reference.cs b/csharp/src/Ice/Reference.cs index 45bde9eb1cb..e67b2b5fcca 100644 --- a/csharp/src/Ice/Reference.cs +++ b/csharp/src/Ice/Reference.cs @@ -149,7 +149,8 @@ namespace IceInternal return this; } Reference r = _instance.referenceFactory().copy(this); - r._identity = newIdentity; // Identity is a value type, therefore a copy of newIdentity is made. + // Identity is a reference type, therefore we make a copy of newIdentity. + r._identity = (Ice.Identity)newIdentity.Clone(); return r; } |