aboutsummaryrefslogtreecommitdiffstats
path: root/inc/perso.inc
diff options
context:
space:
mode:
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;
}