From f77b172b856f184900dfc9884fd382998284e411 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 30 Jun 2016 14:22:08 +0200 Subject: [PATCH] fix js --- src/arenas/tron/act.php | 1 + src/arenas/tron/js.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/arenas/tron/act.php b/src/arenas/tron/act.php index c9231c4..a195146 100644 --- a/src/arenas/tron/act.php +++ b/src/arenas/tron/act.php @@ -18,6 +18,7 @@ switch ($_POST['act']){ //check if bots exists $bots=get_Bots_Array('tron'); + $botsArray = json_decode($_POST['bots']); $bot1Exists = false; $bot2Exists = false; diff --git a/src/arenas/tron/js.js b/src/arenas/tron/js.js index 6f6bee4..e7ed5c1 100644 --- a/src/arenas/tron/js.js +++ b/src/arenas/tron/js.js @@ -76,7 +76,7 @@ function tron(xd_check){ var botsList=[]; var i=0; while(document.getElementById('selectBot' + i)){ - botsList.push(document.getElementById('selectBot' + i)).value; + botsList.push(document.getElementById('selectBot' + i).value); i++; }