- Fixed a few more instances of using non-local vars named _

This commit is contained in:
Parnic
2012-08-30 04:23:24 +00:00
parent 771a2e88a0
commit 532f374d05
3 changed files with 5 additions and 6 deletions

View File

@ -625,6 +625,7 @@ local function munge_unit_menu(menu)
end end
local found = false local found = false
local _, v
for _, v in ipairs(data) do for _, v in ipairs(data) do
if BLACKLISTED_UNIT_MENU_OPTIONS[v] then if BLACKLISTED_UNIT_MENU_OPTIONS[v] then
found = true found = true

View File

@ -334,6 +334,7 @@ function SliceAndDice.prototype:GetMaxBuffTime(numComboPoints)
end end
local rank = 0 local rank = 0
local _
if IceHUD.WowVer < 50000 then if IceHUD.WowVer < 50000 then
_, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx) _, _, _, _, rank = GetTalentInfo(impSndTalentPage, impSndTalentIdx)
end end
@ -383,6 +384,7 @@ end
function SliceAndDice.prototype:GetItemIdFromItemLink(linkStr) function SliceAndDice.prototype:GetItemIdFromItemLink(linkStr)
local itemId local itemId
local _
if linkStr then if linkStr then
_, itemId, _, _, _, _, _, _, _ = strsplit(":", linkStr) _, itemId, _, _, _, _, _, _, _ = strsplit(":", linkStr)

View File

@ -241,12 +241,7 @@ function IceThreat.prototype:Update(unit)
unit = self.unit unit = self.unit
end end
local isInGroup = false local isInGroup = GetNumPartyMembers() > 0
if IceHUD.WowVer >= 50000 then
isInGroup = GetNumGroupMembers() > 0
else
isInGroup = GetNumPartyMembers() > 0
end
if self.moduleSettings.onlyShowInGroups and (not isInGroup and not UnitExists("pet")) then if self.moduleSettings.onlyShowInGroups and (not isInGroup and not UnitExists("pet")) then
self:Show(false) self:Show(false)
return return
@ -265,6 +260,7 @@ function IceThreat.prototype:Update(unit)
local secondHighestThreat = 0 local secondHighestThreat = 0
local rangeMulti = 1.1 local rangeMulti = 1.1
local scaledPercentZeroToOne local scaledPercentZeroToOne
local _
--[[ --[[
threatState = 1 threatState = 1
scaledPercent = 1 scaledPercent = 1