aboutsummaryrefslogtreecommitdiffstats
path: root/inc/perso.inc
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-07 12:08:36 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-07 12:08:36 +0200
commit79cfbb29042fd60dfbc76a6810f75cce21d3ffe0 (patch)
treeed1425c2bf94fd7e2b068bfe64134e0689f83285 /inc/perso.inc
parentee02581b7fabd087fc4056bda739c88656fbca14 (diff)
downloadcandybox-79cfbb29042fd60dfbc76a6810f75cce21d3ffe0.tar.gz
candybox-79cfbb29042fd60dfbc76a6810f75cce21d3ffe0.tar.bz2
candybox-79cfbb29042fd60dfbc76a6810f75cce21d3ffe0.tar.xz
candybox-79cfbb29042fd60dfbc76a6810f75cce21d3ffe0.zip
add the use of the life bottle
Diffstat (limited to 'inc/perso.inc')
-rw-r--r--inc/perso.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/perso.inc b/inc/perso.inc
index 4fb05ef..0362d8c 100644
--- a/inc/perso.inc
+++ b/inc/perso.inc
@@ -10,7 +10,7 @@ function updatePerso(){
$xp = $_POST["xp"];
$lv = $_POST["lv"];
$_SESSION["perso"]["hp"] = $hp;
- $_SESSION["perso"]["xp"] = $xp;
+ $_SESSION["perso"]["xp"] = intval($xp);
$_SESSION["perso"]["lv"] = $lv;
}