Fix guild roster, /who, /inspect, and character preview bugs

Guild O tab: fallback to character guildId when guildName_ not yet
queried, re-query guild info on roster open. /who: add missing
stringCount field and fix maxLevel default (0→100). /inspect: add
SMSG_INSPECT_TALENT opcode (0x3F4) and rewrite parser for WotLK
PackedGUID+talent format. Character preview: reset all tracking
variables in setAssetManager() to force model reload on login.
This commit is contained in:
Kelsi 2026-02-14 15:05:18 -08:00
parent be425c94dc
commit a90c130d6e
12 changed files with 108 additions and 65 deletions

View file

@ -330,7 +330,11 @@ public:
void queryGuildInfo(uint32_t guildId);
// Guild state accessors
bool isInGuild() const { return !guildName_.empty(); }
bool isInGuild() const {
if (!guildName_.empty()) return true;
const Character* ch = getActiveCharacter();
return ch && ch->hasGuild();
}
const std::string& getGuildName() const { return guildName_; }
const GuildRosterData& getGuildRoster() const { return guildRoster_; }
bool hasGuildRoster() const { return hasGuildRoster_; }