1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:43:20 +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); base.OnResuming(last);
if (last != player) return; if (last != player) return;
var newPlayer = new Player player = new Player
{ {
RestartCount = player.RestartCount + 1, RestartCount = player.RestartCount + 1,
OnRestart = restart OnRestart = restart
}; };
player = newPlayer; LoadComponentAsync(player, delegate
LoadComponentAsync(newPlayer, delegate
{ {
if (!Push(newPlayer)) if (!Push(player))
Exit(); Exit();
ValidForResume = false; ValidForResume = false;
}); });