Fix game over bug
This commit is contained in:
@@ -50,7 +50,7 @@ public partial class CharacterSelectUpdateService : Control
|
||||
public void ClearPlayerBGs(int playerIndex)
|
||||
{
|
||||
GD.Print($"Hiding player");
|
||||
var allPortraits = GetNode<Control>($"P{playerIndex}").GetChildren().OfType<TextureRect>();
|
||||
var allPortraits = GetNode<Control>($"P{playerIndex + 1}").GetChildren().OfType<TextureRect>();
|
||||
foreach (var bg in allPortraits)
|
||||
bg.Hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user