diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index b1d8b853..be43d5d8 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -7756,6 +7756,8 @@ void GameScreen::renderVendorWindow(game::GameHandler& gameHandler) { // Show only the most recently sold item (LIFO). const int i = 0; const auto& entry = buyback[0]; + // Proactively ensure buyback item info is loaded + gameHandler.ensureItemInfo(entry.item.itemId); uint32_t sellPrice = entry.item.sellPrice; if (sellPrice == 0) { if (auto* info = gameHandler.getItemInfo(entry.item.itemId); info && info->valid) { @@ -7819,6 +7821,9 @@ void GameScreen::renderVendorWindow(game::GameHandler& gameHandler) { ImGui::TableNextRow(); ImGui::PushID(vi); + // Proactively ensure vendor item info is loaded + gameHandler.ensureItemInfo(item.itemId); + ImGui::TableSetColumnIndex(0); auto* info = gameHandler.getItemInfo(item.itemId); if (info && info->valid) {