Fix bank for all expansions: add missing field indices and per-expansion slot counts
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run

This commit is contained in:
Kelsi 2026-02-26 11:12:34 -08:00
parent 66bcb0a712
commit 804b947203
7 changed files with 49 additions and 15 deletions

View file

@ -907,6 +907,8 @@ public:
void withdrawItem(uint8_t srcBag, uint8_t srcSlot);
bool isBankOpen() const { return bankOpen_; }
uint64_t getBankerGuid() const { return bankerGuid_; }
int getEffectiveBankSlots() const { return effectiveBankSlots_; }
int getEffectiveBankBagSlots() const { return effectiveBankBagSlots_; }
// Guild Bank
void openGuildBank(uint64_t guid);
@ -1619,6 +1621,8 @@ private:
uint64_t bankerGuid_ = 0;
std::array<uint64_t, 28> bankSlotGuids_{};
std::array<uint64_t, 7> bankBagSlotGuids_{};
int effectiveBankSlots_ = 28; // 24 for Classic, 28 for TBC/WotLK
int effectiveBankBagSlots_ = 7; // 6 for Classic, 7 for TBC/WotLK
// Guild Bank
bool guildBankOpen_ = false;