Code cleanup.

This commit is contained in:
2023-01-21 20:14:41 +08:00
parent c1c354959d
commit 9f73c8ffad
2 changed files with 4 additions and 4 deletions

View File

@@ -137,7 +137,7 @@ namespace Cryville.Crtr.Event {
AddChild(child.Key, cc, r);
}
var pms = new Dictionary<StampedEvent, RealtimeMotionValue>(PlayingMotions.Count);
var pms = new Dictionary<StampedEvent, RealtimeMotionValue>(Math.Max(4, PlayingMotions.Count));
foreach (var m in PlayingMotions)
pms.Add(m.Key, m.Value);
r.PlayingMotions = pms;