summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index ef121cf12..9a92a3005 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1211,9 +1211,9 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, eB
cItem EquippedItem = m_Player->GetEquippedItem();
cItem OffhandItem = m_Player->GetOffHandEquipedItem();
- cInventory & Intentory = m_Player->GetInventory();
- Intentory.SetShieldSlot(EquippedItem);
- Intentory.SetHotbarSlot(Intentory.GetEquippedSlotNum(), OffhandItem);
+ cInventory & Inventory = m_Player->GetInventory();
+ Inventory.SetShieldSlot(EquippedItem);
+ Inventory.SetEquippedItem(OffhandItem);
return;
}