Skip to content

Commit

Permalink
Merge branch 'main' into dudantas/fix-item-with-charges-from-drop
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Nov 21, 2023
2 parents 4f56a1b + 7554fc6 commit 4f47ecd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/io/iomarket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,9 @@ void IOMarket::processExpiredOffers(DBResult_ptr result, bool) {
continue;
}

std::shared_ptr<Player> player = g_game().getPlayerByGUID(playerId);
std::shared_ptr<Player> player = g_game().getPlayerByGUID(playerId, true);
if (!player) {
player = std::make_shared<Player>(nullptr);
if (!IOLoginData::loadPlayerById(player, playerId)) {
continue;
}
continue;
}

if (itemType.stackable) {
Expand Down

0 comments on commit 4f47ecd

Please sign in to comment.