From 254fd4e07793558c3e967bbb91c4c0ddca5ae765 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 14 Dec 2015 23:14:00 +0100 Subject: [PATCH] fix php loop --- src/arenas/Battleship/act.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arenas/Battleship/act.php b/src/arenas/Battleship/act.php index 78e553d..d948505 100644 --- a/src/arenas/Battleship/act.php +++ b/src/arenas/Battleship/act.php @@ -99,8 +99,8 @@ switch ($_POST['act']){ } //init grid - for($y = 0; $y < $height){ - for($x = 0; $x < $width){ + for($y = 0; $y < $height; $y++){ + for($x = 0; $x < $width; $x++){ $grid[$player][$y][$x]=0; } }