diff --git a/src/map/trade_container.cpp b/src/map/trade_container.cpp index 234eea1bdf1..98fceb82dfc 100644 --- a/src/map/trade_container.cpp +++ b/src/map/trade_container.cpp @@ -149,11 +149,11 @@ void CTradeContainer::setQuantity(uint8 slotID, uint32 quantity) return; } -bool CTradeContainer::setConfirmedStatus(uint8 slotID, uint8 amount) +bool CTradeContainer::setConfirmedStatus(uint8 slotID, uint32 amount) { if (slotID < m_PItem.size() && m_PItem[slotID] && m_PItem[slotID]->getQuantity() >= amount) { - m_confirmed[slotID] = std::min(amount, m_PItem[slotID]->getQuantity()); + m_confirmed[slotID] = std::min(amount, m_PItem[slotID]->getQuantity()); return true; } return false; diff --git a/src/map/trade_container.h b/src/map/trade_container.h index 82c2a7258e7..183cff0a9ec 100644 --- a/src/map/trade_container.h +++ b/src/map/trade_container.h @@ -70,7 +70,7 @@ class CTradeContainer void setItemID(uint8 slotID, uint16 itemID); void setInvSlotID(uint8 slotID, uint8 invSlotID); void setQuantity(uint8 slotID, uint32 quantity); - bool setConfirmedStatus(uint8 slotID, uint8 amount); + bool setConfirmedStatus(uint8 slotID, uint32 amount); void setItem(uint8 slotID, uint16 itemID, uint8 invSlotID, uint32 quantity, CItem* item = nullptr); void setSize(uint8 size); @@ -86,7 +86,7 @@ class CTradeContainer std::vector m_slotID; std::vector m_itemID; std::vector m_quantity; - std::vector m_confirmed; + std::vector m_confirmed; }; #endif \ No newline at end of file