Stabilize buyback flow and single-row buyback UI

- keep vendor buyback as one-item LIFO row in vendor window

- add robust pending buyback tracking with wire slot probing (74..85)

- recover from stale optimistic sell/buyback entries and refresh vendor list

- keep buy packet construction branch-compatible (direct packet build)
This commit is contained in:
Kelsi 2026-02-19 05:48:40 -08:00
parent 1fdf450c5e
commit 3c754801c4
3 changed files with 136 additions and 9 deletions

View file

@ -1542,6 +1542,7 @@ private:
std::deque<BuybackItem> buybackItems_;
std::unordered_map<uint64_t, BuybackItem> pendingSellToBuyback_;
int pendingBuybackSlot_ = -1;
uint32_t pendingBuybackWireSlot_ = 0;
uint32_t pendingBuyItemId_ = 0;
uint32_t pendingBuyItemSlot_ = 0;