diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-08-12 17:40:51 +0200 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-08-12 17:40:51 +0200 |
commit | cdcc5fe9a7894af6075865f698e3d014a6f92335 (patch) | |
tree | ab1b84a09987f8ebe9d1e8450f36375c0f9bc5db /src/Inventory.cpp | |
parent | Merge pull request #2425 from cuberite/APIDumpNameChange (diff) | |
parent | Fix old style casts and implicit conversions (diff) | |
download | cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.gz cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.bz2 cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.lz cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.xz cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.tar.zst cuberite-cdcc5fe9a7894af6075865f698e3d014a6f92335.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Inventory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Inventory.cpp b/src/Inventory.cpp index 14b7202c7..37d4c0af2 100644 --- a/src/Inventory.cpp +++ b/src/Inventory.cpp @@ -724,7 +724,7 @@ void cInventory::OnSlotChanged(cItemGrid * a_ItemGrid, int a_SlotNum) if ((a_ItemGrid == &m_ArmorSlots) && (World != nullptr)) { World->BroadcastEntityEquipment( - m_Owner, static_cast<short>(ArmorSlotNumToEntityEquipmentID(a_SlotNum)), + m_Owner, static_cast<short>(ArmorSlotNumToEntityEquipmentID(static_cast<short>(a_SlotNum))), m_ArmorSlots.GetSlot(a_SlotNum), m_Owner.GetClientHandle() ); } |