diff options
author | Mattes D <github@xoft.cz> | 2014-09-30 17:16:15 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-30 17:16:15 +0200 |
commit | 1531511bbe6affcb26e6ade17e4a313f5209e8e7 (patch) | |
tree | e9aa42ac32fcb72bf306e679be80cf0082694fc8 /src/WorldStorage | |
parent | Merge pull request #1484 from SphinxC0re/master (diff) | |
parent | Compilation fix (diff) | |
download | cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.tar cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.tar.gz cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.tar.bz2 cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.tar.lz cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.tar.xz cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.tar.zst cuberite-1531511bbe6affcb26e6ade17e4a313f5209e8e7.zip |
Diffstat (limited to 'src/WorldStorage')
-rw-r--r-- | src/WorldStorage/NBTChunkSerializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp index 2420c905b..28b9dd042 100644 --- a/src/WorldStorage/NBTChunkSerializer.cpp +++ b/src/WorldStorage/NBTChunkSerializer.cpp @@ -752,7 +752,7 @@ void cNBTChunkSerializer::AddItemFrameEntity(cItemFrame * a_ItemFrame) void cNBTChunkSerializer::AddMinecartChestContents(cMinecartWithChest * a_Minecart) { m_Writer.BeginList("Items", TAG_Compound); - for (int i = 0; i < cMinecartWithChest::NumSlots; i++) + for (int i = 0; i < cMinecartWithChest::ContentsHeight * cMinecartWithChest::ContentsWidth; i++) { const cItem & Item = a_Minecart->GetSlot(i); if (Item.IsEmpty()) |