mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Avoid potential mis-cast in comparison
This commit is contained in:
parent
e39016bf01
commit
814b520e5e
@ -204,8 +204,8 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override bool EquivalentTo(ControlPoint other) =>
|
public override bool EquivalentTo(ControlPoint other) =>
|
||||||
base.EquivalentTo(other)
|
base.EquivalentTo(other) && other is LegacySampleControlPoint otherTyped &&
|
||||||
&& CustomSampleBank == ((LegacySampleControlPoint)other).CustomSampleBank;
|
CustomSampleBank == otherTyped.CustomSampleBank;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user