This commit is contained in:
Fangh 2024-02-27 21:40:21 +01:00
parent c290bbd1cb
commit d993946343
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class PropositionHandler : MonoBehaviour
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