From b4d9b6f44d2f1693061fa5b47a66eeabefaeda31 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 20 Jun 2016 20:46:59 +0200 Subject: [PATCH] . --- src/arenas/Battleship/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index e2c9a3c..64cdceb 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -134,7 +134,7 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi for (var i = 0; i < grids['logs'].lenght; i++) { //alert (grids['logs'][i]); var p = createElem("p"); - p.innerHTML = grids['logs'][i]; + p.innerHTML = grids[logs][i]; document.getElementById('logs').appendChild(p); } //fight(xd_check,fullLogs);