Skip to content

Commit

Permalink
Merge pull request #211 from JerichoR/Fix11.0.5
Browse files Browse the repository at this point in the history
Fix lua error when loading into 11.0.5 patch
  • Loading branch information
tukz authored Oct 23, 2024
2 parents 5d1a99c + 5f3b4d6 commit 250e416
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tukui/Modules/DataTexts/Elements/Guild.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local EnglishClass = function(class)
return i
end
end

-- Females
for i, j in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do
if class == j then
Expand Down Expand Up @@ -59,7 +59,7 @@ local OnMouseDown = function(self, button)
end

local OnEnter = function(self)
local NumTotalMembers, NumOnlineMaxLevelMembers, NumOnlineMembers = GetNumGuildMembers()
local NumTotalMembers, NumOnlineMembers, NumOnlineAndMobileMembers = GetNumGuildMembers()

if not IsInGuild() or NumOnlineMembers <= 0 then
return
Expand Down Expand Up @@ -135,8 +135,9 @@ local Update = function(self)

return
end
local NumTotalMembers, NumOnlineMembers, NumOnlineAndMobileMembers = GetNumGuildMembers()

self.Text:SetFormattedText("%s %s", DataText.NameColor .. GUILD .. "|r", DataText.ValueColor .. select(3, GetNumGuildMembers()) .. "|r")
self.Text:SetFormattedText("%s %s", DataText.NameColor .. GUILD .. "|r", DataText.ValueColor .. NumOnlineMembers .. "|r")
end

local Enable = function(self)
Expand Down

0 comments on commit 250e416

Please sign in to comment.