From 929d29996585c4f2e4461519ccf2803936b81ae1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 10 Apr 2013 21:03:15 +0000 Subject: ItemGrid: Renamed all Item to Slot - better and consistent naming git-svn-id: http://mc-server.googlecode.com/svn/trunk@1381 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChestEntity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/ChestEntity.cpp') diff --git a/source/ChestEntity.cpp b/source/ChestEntity.cpp index aad8844c6..dbd7f6ef2 100644 --- a/source/ChestEntity.cpp +++ b/source/ChestEntity.cpp @@ -100,10 +100,10 @@ void cChestEntity::SaveToJson(Json::Value & a_Value) a_Value["z"] = m_PosZ; Json::Value AllSlots; - for (int i = m_Contents.GetNumSlots(); i >= 0; i--) + for (int i = m_Contents.GetNumSlots() - 1; i >= 0; i--) { Json::Value Slot; - m_Contents.GetItem(i).GetJson(Slot); + m_Contents.GetSlot(i).GetJson(Slot); AllSlots.append(Slot); } a_Value["Slots"] = AllSlots; -- cgit v1.2.3