fix(#11)
This commit is contained in:
parent
c290bbd1cb
commit
d993946343
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user