diff options
author | Mattes D <github@xoft.cz> | 2015-10-26 07:41:07 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-10-26 07:41:07 +0100 |
commit | 1a2cc9e497c924bf9636836c04f74c1c102f9e97 (patch) | |
tree | 9d714f07041c9bc045f3591c3f2da2039945c80b /src/WorldStorage | |
parent | Debuggers: Added a plugin channel test with funny chars in data. (diff) | |
parent | Update Loops required for JsonCPP (diff) | |
download | cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.tar cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.tar.gz cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.tar.bz2 cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.tar.lz cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.tar.xz cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.tar.zst cuberite-1a2cc9e497c924bf9636836c04f74c1c102f9e97.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()) { |