summaryrefslogtreecommitdiffstats
path: root/src/Inventory.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-09 23:10:02 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-09 23:10:02 +0200
commitc8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8 (patch)
treecb3a0464bfe50aa27a9f10f45112b4005f2ce5dd /src/Inventory.cpp
parentMerge pull request #992 from mc-server/coverity_fixes (diff)
downloadcuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar
cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.gz
cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.bz2
cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.lz
cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.xz
cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.zst
cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.zip
Diffstat (limited to '')
-rw-r--r--src/Inventory.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Inventory.cpp b/src/Inventory.cpp
index a365e4ed4..bce882c88 100644
--- a/src/Inventory.cpp
+++ b/src/Inventory.cpp
@@ -243,6 +243,16 @@ void cInventory::SetHotbarSlot(int a_HotBarSlotNum, const cItem & a_Item)
+void cInventory::SendEquippedSlot()
+{
+ int EquippedSlotNum = cInventory::invArmorCount + cInventory::invInventoryCount + GetEquippedSlotNum();
+ SendSlot(EquippedSlotNum);
+}
+
+
+
+
+
const cItem & cInventory::GetSlot(int a_SlotNum) const
{
if ((a_SlotNum < 0) || (a_SlotNum >= invNumSlots))