1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 11:22:57 +08:00

Fix incorrect cast logic

This commit is contained in:
Dean Herbert 2020-09-23 17:08:25 +09:00
parent 2d67faeb72
commit 02201d0ec6

View File

@ -376,7 +376,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
TernaryState getHitSampleState()
{
int countExisting = selectedBlueprints.Select(b => b.HitObject as IHasComboInformation).Count(h => h.NewCombo);
int countExisting = selectedBlueprints.Select(b => (IHasComboInformation)b.HitObject).Count(h => h.NewCombo);
if (countExisting == 0)
return TernaryState.False;