1
0
Fork 0
mirror of https://github.com/ppy/osu-tools.git synced 2025-06-09 09:35:15 +09:00

Revert change (incorrect osu!-side implementation)

This commit is contained in:
Dan Balasescu 2022-07-19 19:49:00 +09:00
parent 64a308ce3e
commit c4e2ea82da

View file

@ -69,8 +69,8 @@ namespace PerformanceCalculator.Difficulty
Debug.Assert(bindable != null);
object underlyingValue = bindable.GetUnderlyingSettingValue();
Type netType = underlyingValue.GetType();
object? underlyingValue = (object?)bindable.GetUnderlyingSettingValue();
var netType = underlyingValue?.GetType() ?? bindable.GetType().GetInterface("IBindable`1")?.GenericTypeArguments.FirstOrDefault();
yield return new
{