diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-10-19 16:03:55 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-10-26 01:16:35 +0100 |
commit | 079bb7c0167ee87d9a10ff6862e5009f323cd714 (patch) | |
tree | 9d714f07041c9bc045f3591c3f2da2039945c80b /src/WorldStorage/StatSerializer.cpp | |
parent | Debuggers: Added a plugin channel test with funny chars in data. (diff) | |
download | cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.tar cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.tar.gz cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.tar.bz2 cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.tar.lz cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.tar.xz cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.tar.zst cuberite-079bb7c0167ee87d9a10ff6862e5009f323cd714.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WorldStorage/StatSerializer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/StatSerializer.cpp b/src/WorldStorage/StatSerializer.cpp index 29f9b3cd6..16128966b 100644 --- a/src/WorldStorage/StatSerializer.cpp +++ b/src/WorldStorage/StatSerializer.cpp @@ -102,7 +102,7 @@ bool cStatSerializer::LoadStatFromJSON(const Json::Value & a_In) { m_Manager->Reset(); - for (Json::ValueIterator it = a_In.begin() ; it != a_In.end() ; ++it) + for (Json::Value::const_iterator it = a_In.begin() ; it != a_In.end() ; ++it) { AString StatName = it.key().asString(); @@ -114,7 +114,7 @@ bool cStatSerializer::LoadStatFromJSON(const Json::Value & a_In) continue; } - Json::Value & Node = *it; + const Json::Value & Node = *it; if (Node.isInt()) { |