diff --git a/ElvUI/Cata/Modules/Skins/Friends.lua b/ElvUI/Cata/Modules/Skins/Friends.lua index 156cab1cfd..561f960ea5 100644 --- a/ElvUI/Cata/Modules/Skins/Friends.lua +++ b/ElvUI/Cata/Modules/Skins/Friends.lua @@ -356,7 +356,7 @@ function S:FriendsFrame() end end else - for i = 1, _G.GUILDMEMBERS_TO_DISPLAY, 1 do + for i = 1, _G.GUILDMEMBERS_TO_DISPLAY do local button = _G['GuildFrameGuildStatusButton'..i] local _, _, _, _, class, _, _, _, online = GetGuildRosterInfo(button.guildIndex) diff --git a/ElvUI/Classic/Modules/Skins/Character.lua b/ElvUI/Classic/Modules/Skins/Character.lua index 24b81f47db..6e2c077441 100644 --- a/ElvUI/Classic/Modules/Skins/Character.lua +++ b/ElvUI/Classic/Modules/Skins/Character.lua @@ -28,7 +28,7 @@ local function ReputationFrameUpdate() local factionOffset = FauxScrollFrame_GetOffset(_G.ReputationListScrollFrame) local numFactions = GetNumFactions() - for i = 1, NUM_FACTIONS_DISPLAYED, 1 do + for i = 1, NUM_FACTIONS_DISPLAYED do local factionIndex = factionOffset + i if factionIndex <= numFactions then local factionHeader = _G['ReputationHeader'..i] diff --git a/ElvUI/Classic/Modules/Skins/Craft.lua b/ElvUI/Classic/Modules/Skins/Craft.lua index f45a81fb8e..9e3b258579 100644 --- a/ElvUI/Classic/Modules/Skins/Craft.lua +++ b/ElvUI/Classic/Modules/Skins/Craft.lua @@ -117,7 +117,7 @@ function S:SkinCraft() end local numReagents = GetCraftNumReagents(id) - for i = 1, numReagents, 1 do + for i = 1, numReagents do local _, _, reagentCount, playerReagentCount = GetCraftReagentInfo(id, i) local reagentLink = GetCraftReagentItemLink(id, i) local icon = _G['CraftReagent'..i..'IconTexture'] diff --git a/ElvUI/Classic/Modules/Skins/Friends.lua b/ElvUI/Classic/Modules/Skins/Friends.lua index 71435ae623..d4d4873eb6 100644 --- a/ElvUI/Classic/Modules/Skins/Friends.lua +++ b/ElvUI/Classic/Modules/Skins/Friends.lua @@ -349,7 +349,7 @@ function S:FriendsFrame() end end else - for i = 1, _G.GUILDMEMBERS_TO_DISPLAY, 1 do + for i = 1, _G.GUILDMEMBERS_TO_DISPLAY do local button = _G['GuildFrameGuildStatusButton'..i] local _, _, _, _, class, _, _, _, online = GetGuildRosterInfo(button.guildIndex) diff --git a/ElvUI/Core/General/StaticPopups.lua b/ElvUI/Core/General/StaticPopups.lua index cf6b34e639..b93f3d5f34 100644 --- a/ElvUI/Core/General/StaticPopups.lua +++ b/ElvUI/Core/General/StaticPopups.lua @@ -684,7 +684,7 @@ function E:StaticPopup_FindVisible(which, data) if not info then return nil end - for index = 1, MAX_STATIC_POPUPS, 1 do + for index = 1, MAX_STATIC_POPUPS do local frame = _G['ElvUI_StaticPopup'..index] if frame and frame:IsShown() and (frame.which == which) and (not info.multiple or (frame.data == data)) then return frame @@ -781,7 +781,7 @@ function E:StaticPopup_Show(which, text_arg1, text_arg2, data) end if info.cancels then - for index = 1, MAX_STATIC_POPUPS, 1 do + for index = 1, MAX_STATIC_POPUPS do local frame = _G['ElvUI_StaticPopup'..index] if frame:IsShown() and (frame.which == info.cancels) then frame:Hide() @@ -1066,7 +1066,7 @@ function E:StaticPopup_Show(which, text_arg1, text_arg2, data) end function E:StaticPopup_Hide(which, data) - for index = 1, MAX_STATIC_POPUPS, 1 do + for index = 1, MAX_STATIC_POPUPS do local dialog = _G['ElvUI_StaticPopup'..index] if dialog.which == which and (not data or (data == dialog.data)) then dialog:Hide() diff --git a/ElvUI/Core/Modules/Bags/Bags.lua b/ElvUI/Core/Modules/Bags/Bags.lua index ec5ade3a78..8f02f90330 100644 --- a/ElvUI/Core/Modules/Bags/Bags.lua +++ b/ElvUI/Core/Modules/Bags/Bags.lua @@ -347,7 +347,7 @@ do if #search > MIN_REPEAT_CHARACTERS then local repeating = true - for i = 1, MIN_REPEAT_CHARACTERS, 1 do + for i = 1, MIN_REPEAT_CHARACTERS do local x, y = 0-i, -1-i if strsub(search, x, x) ~= strsub(search, y, y) then repeating = false diff --git a/ElvUI/Core/Modules/Chat/Chat.lua b/ElvUI/Core/Modules/Chat/Chat.lua index 824bc9d133..b5c0ffe4d1 100644 --- a/ElvUI/Core/Modules/Chat/Chat.lua +++ b/ElvUI/Core/Modules/Chat/Chat.lua @@ -638,7 +638,7 @@ do local MIN_REPEAT_CHARACTERS = CH.db.numAllowedCombatRepeat if len > MIN_REPEAT_CHARACTERS then local repeatChar = true - for i = 1, MIN_REPEAT_CHARACTERS, 1 do + for i = 1, MIN_REPEAT_CHARACTERS do local first = -1 - i if strsub(text,-i,-i) ~= strsub(text,first,first) then repeatChar = false