From d993946343b6b964186631e607363cc875be158e Mon Sep 17 00:00:00 2001 From: Fangh Date: Tue, 27 Feb 2024 21:40:21 +0100 Subject: [PATCH] fix(#11) --- Assets/Scripts/PropositionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/PropositionHandler.cs b/Assets/Scripts/PropositionHandler.cs index c1a0457..7d296e5 100644 --- a/Assets/Scripts/PropositionHandler.cs +++ b/Assets/Scripts/PropositionHandler.cs @@ -25,7 +25,7 @@ public void ShowPlayersProposition(Question currentQuestion) for (int i = 0; i < 2; i++) { int index = i; // Capture la valeur de i pour cette itération - if(props[i].photoUrl == null) + if(string.IsNullOrEmpty(props[i].photoUrl)) { Debug.Log("One player did not send a proposition !", this); btns[index].sprite = defaultImage; // Utilise l'index local au lieu de i