diff --git a/Content.Client/RoundEnd/RoundEndSummaryWindow.cs b/Content.Client/RoundEnd/RoundEndSummaryWindow.cs index b12ebe1807..bb75d75d75 100644 --- a/Content.Client/RoundEnd/RoundEndSummaryWindow.cs +++ b/Content.Client/RoundEnd/RoundEndSummaryWindow.cs @@ -125,19 +125,15 @@ namespace Content.Client.RoundEnd VerticalExpand = true, }; - var playerUid = _entityManager.GetEntity(playerInfo.PlayerNetEntity); - - if (_entityManager.HasComponent(playerUid)) + if (playerInfo.PlayerNetEntity != null) { - var spriteView = new SpriteView - { - OverrideDirection = Direction.South, - VerticalAlignment = VAlignment.Center, - SetSize = new Vector2(32, 32), - VerticalExpand = true, - }; - spriteView.SetEntity(playerUid); - hBox.AddChild(spriteView); + hBox.AddChild(new SpriteView(playerInfo.PlayerNetEntity.Value, _entityManager) + { + OverrideDirection = Direction.South, + VerticalAlignment = VAlignment.Center, + SetSize = new Vector2(32, 32), + VerticalExpand = true, + }); } if (playerInfo.PlayerICName != null)