diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 16:32:04 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 16:32:04 +0100 |
commit | a94a6d48a0d6121c6951f01a81474e718f045430 (patch) | |
tree | fb5132ca22cb1e0fee41d16fa5fd9f1b418eb4b1 /source/Entities/Player.cpp | |
parent | finished #143 I believe (diff) | |
download | cuberite-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.cpp | 2 |
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()); |