diff --git a/src/creatures/npcs/npc.cpp b/src/creatures/npcs/npc.cpp index 7b4a4f2a5fb..b7bff9098dd 100644 --- a/src/creatures/npcs/npc.cpp +++ b/src/creatures/npcs/npc.cpp @@ -391,7 +391,7 @@ void Npc::onPlayerSellItem(std::shared_ptr player, uint16_t itemId, uint continue; } - if(!item->hasMarketAttributes()){ + if (!item->hasMarketAttributes()) { continue; } diff --git a/src/creatures/players/player.cpp b/src/creatures/players/player.cpp index 4eea358bf59..b17470231b8 100644 --- a/src/creatures/players/player.cpp +++ b/src/creatures/players/player.cpp @@ -4120,7 +4120,7 @@ std::map &Player::getAllItemTypeCount(std::map &Player::getAllSaleItemIdAndCount(std::map &countMap) const { for (const auto &item : getAllInventoryItems(false, true)) { - if(item->hasMarketAttributes()){ + if (!item->hasMarketAttributes()) { continue; } countMap[item->getID()] += item->getItemCount();