diff options
Diffstat (limited to '')
-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); |