Skip to content

Commit

Permalink
Merge branch 'sell_item_duration' of https://github.com/opentibiabr/c…
Browse files Browse the repository at this point in the history
…anary into sell_item_duration
  • Loading branch information
carlospess0a committed Sep 25, 2024
2 parents 9371ee0 + 84c1559 commit 4b88343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/creatures/npcs/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ void Npc::onPlayerSellItem(std::shared_ptr<Player> player, uint16_t itemId, uint
continue;
}

if(!item->hasMarketAttributes()){
if (!item->hasMarketAttributes()) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4120,7 +4120,7 @@ std::map<uint32_t, uint32_t> &Player::getAllItemTypeCount(std::map<uint32_t, uin

std::map<uint16_t, uint16_t> &Player::getAllSaleItemIdAndCount(std::map<uint16_t, uint16_t> &countMap) const {
for (const auto &item : getAllInventoryItems(false, true)) {
if(item->hasMarketAttributes()){
if (!item->hasMarketAttributes()) {
continue;
}
countMap[item->getID()] += item->getItemCount();
Expand Down

0 comments on commit 4b88343

Please sign in to comment.