From 107c424c0b5af613ddfec97452328db389da8d2e Mon Sep 17 00:00:00 2001 From: gnieark Date: Sun, 15 May 2016 00:19:45 +0200 Subject: [PATCH] oups infinite loop --- src/arenas/connectFour/act.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arenas/connectFour/act.php b/src/arenas/connectFour/act.php index 7207848..b3d69ff 100644 --- a/src/arenas/connectFour/act.php +++ b/src/arenas/connectFour/act.php @@ -144,7 +144,7 @@ switch ($_POST['act']){ //tester si 4 pions allignés vers le haut if((!$wins) && ($j<3)){ $wins = true; - for($y = $j+1; $y < $j + 4; $j++){ + for($y = $j+1; $y < $j + 4; $y++){ if($_SESSION['map'][$y][$i] <> $you){ $wins=false; break;