From c4e2ea82dac74353c1d6465377090912e2b0662f Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 19 Jul 2022 19:49:00 +0900 Subject: [PATCH] Revert change (incorrect osu!-side implementation) --- PerformanceCalculator/Difficulty/ModsCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PerformanceCalculator/Difficulty/ModsCommand.cs b/PerformanceCalculator/Difficulty/ModsCommand.cs index b59151e..9f7cbed 100644 --- a/PerformanceCalculator/Difficulty/ModsCommand.cs +++ b/PerformanceCalculator/Difficulty/ModsCommand.cs @@ -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 {