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:
Kelsi 2026-03-20 05:12:24 -07:00
parent 9600dd40e3
commit e68a1fa2ec
3 changed files with 16 additions and 5 deletions

View file

@ -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