1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

Removed unneeded newPlayer

This commit is contained in:
ocboogie 2017-04-17 23:48:21 -07:00
parent c0f4cbcba6
commit 2bd89e922f

View File

@ -65,15 +65,14 @@ namespace osu.Game.Screens.Play
{
base.OnResuming(last);
if (last != player) return;
var newPlayer = new Player
player = new Player
{
RestartCount = player.RestartCount + 1,
OnRestart = restart
};
player = newPlayer;
LoadComponentAsync(newPlayer, delegate
LoadComponentAsync(player, delegate
{
if (!Push(newPlayer))
if (!Push(player))
Exit();
ValidForResume = false;
});