Skip to content

Commit

Permalink
fix missing arg to findSpellIdx()
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchnull authored and Stanzilla committed Nov 24, 2023
1 parent ae7a62f commit bba6ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ License: MIT
-- @class file
-- @name LibRangeCheck-3.0
local MAJOR_VERSION = "LibRangeCheck-3.0"
local MINOR_VERSION = 6
local MINOR_VERSION = 7

local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not lib then
Expand Down Expand Up @@ -628,7 +628,7 @@ local function findMinRangeChecker(origMinRange, origRange, spellList)
local sid = spellList[i]
local name, minRange, range, spellIdx = getSpellData(sid)
if range and spellIdx and origMinRange <= range and range <= origRange and minRange == 0 then
return checkers_Spell[findSpellIdx]
return checkers_Spell[findSpellIdx(name)]
end
end
end
Expand Down

0 comments on commit bba6ebd

Please sign in to comment.