Fix accessing incorrect items list in event

This commit is contained in:
Dean Herbert
2020-02-18 19:00:02 +09:00
parent b7849dd91a
commit a1bfb18ce0

View File

@ -58,7 +58,7 @@ namespace osu.Game.Rulesets.Objects
break; break;
case NotifyCollectionChangedAction.Remove: case NotifyCollectionChangedAction.Remove:
foreach (var c in args.NewItems.Cast<PathControlPoint>()) foreach (var c in args.OldItems.Cast<PathControlPoint>())
c.Changed -= invalidate; c.Changed -= invalidate;
break; break;
} }