mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Avoid potential mis-cast in comparison
This commit is contained in:
@ -204,8 +204,8 @@ namespace osu.Game.Beatmaps.Formats
|
||||
}
|
||||
|
||||
public override bool EquivalentTo(ControlPoint other) =>
|
||||
base.EquivalentTo(other)
|
||||
&& CustomSampleBank == ((LegacySampleControlPoint)other).CustomSampleBank;
|
||||
base.EquivalentTo(other) && other is LegacySampleControlPoint otherTyped &&
|
||||
CustomSampleBank == otherTyped.CustomSampleBank;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user