summaryrefslogtreecommitdiffstats
path: root/source/Entities/Player.cpp
diff options
context:
space:
mode:
authorDaniel O'Brien <marmot.daniel@gmail.com>2013-11-15 16:32:04 +0100
committerDaniel O'Brien <marmot.daniel@gmail.com>2013-11-15 16:32:04 +0100
commita94a6d48a0d6121c6951f01a81474e718f045430 (patch)
treefb5132ca22cb1e0fee41d16fa5fd9f1b418eb4b1 /source/Entities/Player.cpp
parentfinished #143 I believe (diff)
downloadcuberite-a94a6d48a0d6121c6951f01a81474e718f045430.tar
cuberite-a94a6d48a0d6121c6951f01a81474e718f045430.tar.gz
cuberite-a94a6d48a0d6121c6951f01a81474e718f045430.tar.bz2
cuberite-a94a6d48a0d6121c6951f01a81474e718f045430.tar.lz
cuberite-a94a6d48a0d6121c6951f01a81474e718f045430.tar.xz
cuberite-a94a6d48a0d6121c6951f01a81474e718f045430.tar.zst
cuberite-a94a6d48a0d6121c6951f01a81474e718f045430.zip
Diffstat (limited to 'source/Entities/Player.cpp')
-rw-r--r--source/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp
index 651a0b2a6..f25483375 100644
--- a/source/Entities/Player.cpp
+++ b/source/Entities/Player.cpp
@@ -1437,7 +1437,7 @@ bool cPlayer::LoadFromDisk()
m_FoodSaturationLevel = root.get("foodSaturation", MAX_FOOD_LEVEL).asDouble();
m_FoodTickTimer = root.get("foodTickTimer", 0).asInt();
m_FoodExhaustionLevel = root.get("foodExhaustion", 0).asDouble();
- m_XpTotal = root.get("experience", 0).asInt();
+ m_XpTotal = (short) root.get("experience", 0).asInt();
//SetExperience(root.get("experience", 0).asInt());