Skip to content

Commit

Permalink
fix: maybe it can help
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Aug 25, 2024
1 parent 2e0c250 commit 0cdf3b3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Modules/Social/ChatText.lua
Original file line number Diff line number Diff line change
Expand Up @@ -674,14 +674,13 @@ local function updateGuildPlayerCache(_, event)
return
end

if not IsInGuild() then
return
end

for i = 1, GetNumGuildMembers() do
local name, _, _, _, _, _, _, _, _, _, className = GetGuildRosterInfo(i)
name = Ambiguate(name, "none")
guildPlayerCache[name] = className
if IsInGuild() then
for i = 1, GetNumGuildMembers() do
local name, _, _, _, _, _, _, _, _, _, className = GetGuildRosterInfo(i)
if name and className then
guildPlayerCache[Ambiguate(name, "none")] = className
end
end
end
end

Expand Down

0 comments on commit 0cdf3b3

Please sign in to comment.