diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-24 09:58:26 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-24 09:58:26 +0200 |
commit | e92b9e7ecbdf2918aab59d4eeb7bb5966430b264 (patch) | |
tree | 1a998d44e5faab91c54ea8517dd9fa02b3732ef7 /source/cInventory.cpp | |
parent | Added plugin name to deprecation messages (diff) | |
download | cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.gz cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.bz2 cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.lz cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.xz cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.tar.zst cuberite-e92b9e7ecbdf2918aab59d4eeb7bb5966430b264.zip |
Diffstat (limited to 'source/cInventory.cpp')
-rw-r--r-- | source/cInventory.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/cInventory.cpp b/source/cInventory.cpp index 7122a697c..cd74cad41 100644 --- a/source/cInventory.cpp +++ b/source/cInventory.cpp @@ -235,7 +235,7 @@ void cInventory::SetEquippedSlot( int a_SlotNum ) -cItem & cInventory::GetEquippedItem() +cItem & cInventory::GetEquippedItem(void) { cItem* Item = GetFromHotBar( m_EquippedSlot ); if( Item ) @@ -254,6 +254,15 @@ cItem & cInventory::GetEquippedItem() +const cItem & cInventory::GetEquippedItem(void) const +{ + return *m_EquippedItem; +} + + + + + void cInventory::SendWholeInventory(cClientHandle * a_Client) { a_Client->SendWholeInventory(*this); |