diff --git a/src/creatures/players/player.cpp b/src/creatures/players/player.cpp index 27e113b852b..1cc22b8ce6c 100644 --- a/src/creatures/players/player.cpp +++ b/src/creatures/players/player.cpp @@ -4116,21 +4116,23 @@ std::map &Player::getAllItemTypeCount(std::map &Player::getAllSaleItemIdAndCount(std::map &countMap) const { - for (const auto &item : getAllInventoryItems(false, true)) { - if (!item->hasMarketAttributes()) { - continue; - } - - if (const auto &container = item->getContainer()) { - if (container->size() > 0) { - continue; - } - } - - countMap[item->getID()] += item->getItemCount(); - } - - return countMap; + for (const auto &item : getAllInventoryItems(false, true)) { + if (item->getID() != ITEM_GOLD_POUCH) { + if (!item->hasMarketAttributes()) { + continue; + } + + if (const auto &container = item->getContainer()) { + if (!container->empty()) { + continue; + } + } + } + + countMap[item->getID()] += item->getItemCount(); + } + + return countMap; } void Player::getAllItemTypeCountAndSubtype(std::map &countMap) const {