Quantcast

attempt to fix #2

yaroot [01-25-11 - 00:51]
attempt to fix #2
Filename
guild.lua
diff --git a/guild.lua b/guild.lua
index 5b95f17..975186d 100644
--- a/guild.lua
+++ b/guild.lua
@@ -14,9 +14,8 @@ local function update()
     local buttons = GuildRosterContainer.buttons

     for i, button in ipairs(buttons) do
-        -- why the fuck no continue?
-        if(button:IsShown() and button.online and button.guildIndex) then
-            local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPnts, achievementRank, isMobile = GetGuildRosterInfo(button.guildIndex)
+        local name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPnts, achievementRank, isMobile = GetGuildRosterInfo(button.guildIndex)
+        if(name and button:IsShown() and button.online and button.guildIndex) then
             --print(button.guildIndex, name, time())
             if(_VIEW == 'playerStatus') then
                 button.string1:SetText(ns.diffColor[level] .. level)