Ensure clones don't reference to MaximumStatistics

This commit is contained in:
Dan Balasescu 2022-08-25 13:58:57 +09:00
parent e7cbb6c63d
commit 17029f0b92
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ public ScoreInfo DeepClone()
var clone = (ScoreInfo)this.Detach().MemberwiseClone();
clone.Statistics = new Dictionary<HitResult, int>(clone.Statistics);
clone.MaximumStatistics = new Dictionary<HitResult, int>(clone.MaximumStatistics);
clone.RealmUser = new RealmUser
{
OnlineID = RealmUser.OnlineID,