mirror of https://github.com/ppy/osu
Avoid potential mis-cast in comparison
This commit is contained in:
parent
e39016bf01
commit
814b520e5e
|
@ -204,8 +204,8 @@ public override HitSampleInfo ApplyTo(HitSampleInfo hitSampleInfo)
|
|||
}
|
||||
|
||||
public override bool EquivalentTo(ControlPoint other) =>
|
||||
base.EquivalentTo(other)
|
||||
&& CustomSampleBank == ((LegacySampleControlPoint)other).CustomSampleBank;
|
||||
base.EquivalentTo(other) && other is LegacySampleControlPoint otherTyped &&
|
||||
CustomSampleBank == otherTyped.CustomSampleBank;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue