1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Revert drive-by changes

This commit is contained in:
Salman Ahmed 2021-01-01 15:40:40 +03:00
parent a031c8e0b6
commit c1a1e3acc5

View File

@ -131,7 +131,7 @@ namespace osu.Game.Rulesets.Mods
/// </summary>
public virtual Mod CreateCopy()
{
var result = (Mod)Activator.CreateInstance(GetType(), true);
var result = (Mod)Activator.CreateInstance(GetType());
result.CopyFrom(this);
return result;
}
@ -151,7 +151,7 @@ namespace osu.Game.Rulesets.Mods
var theirBindable = prop.GetValue(them);
// The bindables themselves are readonly, so the value must be transferred through the Bindable<T>.Value property.
var valueProperty = theirBindable.GetType().GetProperty(nameof(Bindable<object>.Value), BindingFlags.Public | BindingFlags.Instance);
var valueProperty = ourBindable.GetType().GetProperty(nameof(Bindable<object>.Value), BindingFlags.Public | BindingFlags.Instance);
Debug.Assert(valueProperty != null);
valueProperty.SetValue(ourBindable, valueProperty.GetValue(theirBindable));