Skip to content

Commit

Permalink
Move base call to end
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Nov 24, 2022
1 parent b381b4f commit a243842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/Rulesets/Mods/DifficultyBindable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ public override void BindTo(Bindable<float?> them)
if (!(them is DifficultyBindable otherDifficultyBindable))
throw new InvalidOperationException($"Cannot bind to a non-{nameof(DifficultyBindable)}.");

base.BindTo(them);

ExtendedLimits.BindTarget = otherDifficultyBindable.ExtendedLimits;

// the actual values need to be copied after the max value constraints.
CurrentNumber.BindTarget = otherDifficultyBindable.CurrentNumber;

base.BindTo(them);
}

public override void UnbindFrom(IUnbindable them)
Expand Down

0 comments on commit a243842

Please sign in to comment.