diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 21:52:03 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-10 21:52:03 +0200 |
commit | cc26f1646308a71ea78f0656efa670915e5e7345 (patch) | |
tree | 99b380f0d6466d4f67d792a6bd66b6dc87b80f02 /source/UI | |
parent | Fixed Windows Release build (diff) | |
download | cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.gz cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.bz2 cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.lz cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.xz cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.tar.zst cuberite-cc26f1646308a71ea78f0656efa670915e5e7345.zip |
Diffstat (limited to '')
-rw-r--r-- | source/UI/SlotArea.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/UI/SlotArea.cpp b/source/UI/SlotArea.cpp index 881346c45..dd68f029d 100644 --- a/source/UI/SlotArea.cpp +++ b/source/UI/SlotArea.cpp @@ -224,7 +224,7 @@ cSlotAreaChest::cSlotAreaChest(cChestEntity * a_Chest, cWindow & a_ParentWindow) const cItem * cSlotAreaChest::GetSlot(int a_SlotNum, cPlayer & a_Player)
{
// a_SlotNum ranges from 0 to 26, use that to index the chest entity's inventory directly:
- return m_Chest->GetSlot(a_SlotNum);
+ return &(m_Chest->GetSlot(a_SlotNum));
}
@@ -259,11 +259,11 @@ const cItem * cSlotAreaDoubleChest::GetSlot(int a_SlotNum, cPlayer & a_Player) // a_SlotNum ranges from 0 to 53, use that to index the correct chest's inventory:
if (a_SlotNum < 27)
{
- return m_TopChest->GetSlot(a_SlotNum);
+ return &(m_TopChest->GetSlot(a_SlotNum));
}
else
{
- return m_BottomChest->GetSlot(a_SlotNum - 27);
+ return &(m_BottomChest->GetSlot(a_SlotNum - 27));
}
}
|