Incorrect arguments passed to ADDON_LOADED #89


  • New
  • Defect
Open
Assigned to merialkilrogg
  • Cybeloras created this issue Jul 20, 2011
    Author

    On lines 64-68 of AuctionLite.lua, the args passed to ADDON_LOADED to fake the event are incorrect. You have the addon name passed into the event name's spot. Also, you used an elseif, making it so the guild bank UI won't be checked if the auction UI needs loading. The correct code is below:

     if IsAddOnLoaded("Blizzard_AuctionUI") then
        self:ADDON_LOADED("ADDON_LOADED", "Blizzard_AuctionUI");
      end
      if IsAddOnLoaded("Blizzard_GuildBankUI") then
        self:ADDON_LOADED("ADDON_LOADED", "Blizzard_GuildBankUI");
      end
    
  • Cybeloras added the tags New Defect Jul 20, 2011
  • Cybeloras edited description Jul 20, 2011
  • MysticalOS posted a comment Nov 6, 2011

    addon works fine with it's current code, with yoru changes it errors out like crazy, so not sure what you were trying to fix?


    Edited Nov 6, 2011

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