ZOMG 3.3 Release 3 - Error #129


  • New
  • Defect
Open
  • _ForgeUser1192972 created this issue Mar 1, 2010

    Not working anymore. No buff icon and auto-casting not working.

    On Load
    Message: ...dOns\ZOMGBuffs_BuffTehRaid\ZOMGBuffs_BuffTehRaid.lua line 2774:
    bad argument #1 to 'pairs' (table expected, got string)

    On MiniMap Button Clic
    Message: ..\AddOns\ZOMGBuffs\ZOMGBuffs.lua line 4694:
    attempt to index field 'icon' (a nil value)

  • _ForgeUser1192972 added the tags New Defect Mar 1, 2010
  • _ForgeUser1200630 posted a comment Mar 8, 2010

    I'm not sure what caused the issue, but I've worked around the first one until there's a new release by adding an extra conditional to the OnRaidRosterUpdate function. Here's the code:

    function zg:OnRaidRosterUpdate()
      -- Some magic to clear our X-Realm names from our settings if they no longer exist to us
      local lim = template and template.limited
      if (lim) then
        for key,list in pairs(lim) do
          if (type(list)=="table") then
            for name in pairs(list) do
              if (not UnitInRaid(name) and not UnitInParty(name)) then
                list[name] = nil
                self:StopSpellTracker(key)
                if (not next(list)) then
                  lim[key] = nil
                  break
                end
              end
            end
          end
        end
      end
    end
    

To post a comment, please login or register a new account.