mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
* Fix a small issue with getQuickSlotItem
This commit is contained in:
@@ -219,6 +219,9 @@ ItemInstance* Inventory::getQuickSlotItem(int slotNo)
|
||||
return nullptr;
|
||||
|
||||
ItemInstance* pInst = getItem(m_hotbar[slotNo]);
|
||||
if (!pInst)
|
||||
return nullptr;
|
||||
|
||||
if (pInst->m_itemID == 0)
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user