mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 08:00:14 +00:00
fix: guard equipment set packets against unsupported expansions
Classic and TBC lack equipment set opcodes, so sending save/use/delete packets would transmit wire opcode 0xFFFF and potentially disconnect the client. Now all three methods check wireOpcode != 0xFFFF before sending, and the Outfits tab is only shown when the expansion supports equipment sets (via supportsEquipmentSets() check).
This commit is contained in:
parent
9600dd40e3
commit
e68a1fa2ec
3 changed files with 16 additions and 5 deletions
|
|
@ -1438,8 +1438,8 @@ void InventoryScreen::renderCharacterScreen(game::GameHandler& gameHandler) {
|
|||
ImGui::EndTabItem();
|
||||
}
|
||||
|
||||
// Equipment Sets tab (WotLK — always show so player can create sets)
|
||||
if (ImGui::BeginTabItem("Outfits")) {
|
||||
// Equipment Sets tab (WotLK only — requires server support)
|
||||
if (gameHandler.supportsEquipmentSets() && ImGui::BeginTabItem("Outfits")) {
|
||||
ImGui::Spacing();
|
||||
|
||||
// Save current gear as new set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue