1
0
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:
Dean Herbert 2017-03-31 16:00:40 +09:00
parent fa7c72a099
commit cf87330f80
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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>