From 1aca4957a4e9958d13ea32d899ac9eb79d56a303 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 19 Dec 2024 23:01:16 +0300 Subject: [PATCH] fix --- src/frontend/hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/hud.cpp b/src/frontend/hud.cpp index b3bebda74..33f8436bc 100644 --- a/src/frontend/hud.cpp +++ b/src/frontend/hud.cpp @@ -508,7 +508,7 @@ void Hud::dropExchangeSlot() { if (stack.isEmpty()) { return; } - player->getInventory()->move(stack, indices); + player.getInventory()->move(stack, indices); if (!stack.isEmpty()) { logger.warning() << "discard item [" << stack.getItemId() << ":" << stack.getCount();