summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-10-19 16:03:55 +0200
committertycho <work.tycho@gmail.com>2015-10-26 01:16:35 +0100
commit079bb7c0167ee87d9a10ff6862e5009f323cd714 (patch)
tree9d714f07041c9bc045f3591c3f2da2039945c80b /src/BlockEntities
parentDebuggers: Added a plugin channel test with funny chars in data. (diff)
downloadcuberite-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 'src/BlockEntities')
-rw-r--r--src/BlockEntities/EnderChestEntity.cpp4
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++;
}