mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 13:42:56 +08:00
Allow SetReplay to receive null.
This commit is contained in:
parent
fa7c72a099
commit
cf87330f80
@ -72,7 +72,7 @@ namespace osu.Game.Modes.UI
|
||||
|
||||
protected virtual FramedReplayInputHandler CreateReplayInputHandler(Replay replay) => new FramedReplayInputHandler(replay);
|
||||
|
||||
public void SetReplay(Replay replay) => InputManager.ReplayInputHandler = CreateReplayInputHandler(replay);
|
||||
public void SetReplay(Replay replay) => InputManager.ReplayInputHandler = replay != null ? CreateReplayInputHandler(replay) : null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user