mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 01:23:51 +00:00
fix: backpack window jumps position when selling items (missing ##id in title)
This commit is contained in:
parent
504d112625
commit
21fb2aa11c
1 changed files with 1 additions and 1 deletions
|
|
@ -989,7 +989,7 @@ void InventoryScreen::renderSeparateBags(game::Inventory& inventory, uint64_t mo
|
|||
int bpUsed = 0;
|
||||
for (int i = 0; i < bpTotal; ++i) if (!inventory.getBackpackSlot(i).empty()) ++bpUsed;
|
||||
char bpTitle[64];
|
||||
snprintf(bpTitle, sizeof(bpTitle), "Backpack (%d/%d)", bpUsed, bpTotal);
|
||||
snprintf(bpTitle, sizeof(bpTitle), "Backpack (%d/%d)##backpack", bpUsed, bpTotal);
|
||||
int bpRows = (bpTotal + columns - 1) / columns;
|
||||
float bpH = bpRows * (slotSize + 4.0f) + 80.0f; // header + money + padding
|
||||
float defaultY = stackBottom - bpH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue