From 7554fc63f3984df41032a7dad972ea5e8a52a80a Mon Sep 17 00:00:00 2001 From: Luan Santos Date: Mon, 20 Nov 2023 14:22:02 -0800 Subject: [PATCH] fix: expiring market offers (#1850) --- src/io/iomarket.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/io/iomarket.cpp b/src/io/iomarket.cpp index d6b6109309c..6aa25e65f1b 100644 --- a/src/io/iomarket.cpp +++ b/src/io/iomarket.cpp @@ -132,12 +132,9 @@ void IOMarket::processExpiredOffers(DBResult_ptr result, bool) { continue; } - std::shared_ptr player = g_game().getPlayerByGUID(playerId); + std::shared_ptr player = g_game().getPlayerByGUID(playerId, true); if (!player) { - player = std::make_shared(nullptr); - if (!IOLoginData::loadPlayerById(player, playerId)) { - continue; - } + continue; } if (itemType.stackable) {