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/BlockEntities | |
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/BlockEntities/EnderChestEntity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockEntities/EnderChestEntity.cpp b/src/BlockEntities/EnderChestEntity.cpp index 00e203520..8783c1610 100644 --- a/src/BlockEntities/EnderChestEntity.cpp +++ b/src/BlockEntities/EnderChestEntity.cpp @@ -75,10 +75,10 @@ void cEnderChestEntity::OpenNewWindow() void cEnderChestEntity::LoadFromJson(const Json::Value & a_Value, cItemGrid & a_Grid) { int SlotIdx = 0; - for (Json::Value::iterator itr = a_Value.begin(); itr != a_Value.end(); ++itr) + for (auto & Node : a_Value) { cItem Item; - Item.FromJson(*itr); + Item.FromJson(Node); a_Grid.SetSlot(SlotIdx, Item); SlotIdx++; } |