mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Move base call to end
This commit is contained in:
parent
b381b4fd2d
commit
a2438428a2
@ -118,12 +118,12 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
if (!(them is DifficultyBindable otherDifficultyBindable))
|
if (!(them is DifficultyBindable otherDifficultyBindable))
|
||||||
throw new InvalidOperationException($"Cannot bind to a non-{nameof(DifficultyBindable)}.");
|
throw new InvalidOperationException($"Cannot bind to a non-{nameof(DifficultyBindable)}.");
|
||||||
|
|
||||||
base.BindTo(them);
|
|
||||||
|
|
||||||
ExtendedLimits.BindTarget = otherDifficultyBindable.ExtendedLimits;
|
ExtendedLimits.BindTarget = otherDifficultyBindable.ExtendedLimits;
|
||||||
|
|
||||||
// the actual values need to be copied after the max value constraints.
|
// the actual values need to be copied after the max value constraints.
|
||||||
CurrentNumber.BindTarget = otherDifficultyBindable.CurrentNumber;
|
CurrentNumber.BindTarget = otherDifficultyBindable.CurrentNumber;
|
||||||
|
|
||||||
|
base.BindTo(them);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void UnbindFrom(IUnbindable them)
|
public override void UnbindFrom(IUnbindable them)
|
||||||
|
Loading…
Reference in New Issue
Block a user