Skip to content

Commit

Permalink
Fix uninitialized item id in market active offers (otland#4375)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt authored and EPuncker committed May 23, 2023
1 parent 0062347 commit 302d8c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iomarket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ MarketOfferList IOMarket::getActiveOffers(MarketAction_t action, uint16_t itemId
offer.price = result->getNumber<uint32_t>("price");
offer.timestamp = result->getNumber<uint32_t>("created") + marketOfferDuration;
offer.counter = result->getNumber<uint32_t>("id") & 0xFFFF;
offer.itemId = itemId;
if (result->getNumber<uint16_t>("anonymous") == 0) {
offer.playerName = result->getString("player_name");
} else {
Expand Down

0 comments on commit 302d8c4

Please sign in to comment.