From 7e46ea6e747e26752fe56037223f6171b1551007 Mon Sep 17 00:00:00 2001 From: Pierre FERREIRA Date: Wed, 29 Nov 2023 15:57:42 +0100 Subject: [PATCH] =?UTF-8?q?fix=20du=20probl=C3=A8me=20qui=20emp=C3=AAch?= =?UTF-8?q?=C3=A9=20le=20joueur=201=20=C3=A0=20=C3=AAtre=20demand=C3=A9.?= =?UTF-8?q?=20:ambulance:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptide_project/src/Components/GraphContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx index 786be8a..267dbfe 100644 --- a/cryptide_project/src/Components/GraphContainer.tsx +++ b/cryptide_project/src/Components/GraphContainer.tsx @@ -655,7 +655,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS } } else{ - if (touchedPlayer > 0){ + if (touchedPlayer >= 0){ console.log(touchedPlayer) socket.emit("ask player", params.nodes[0], players[touchedPlayer].id, players.find((p) => p.id === socket.id, actualPlayerIndex)) socket.emit("put correct background", socket.id)