Skip to content

Commit

Permalink
Fix LUA error on using a Portal
Browse files Browse the repository at this point in the history
I can't reproduce the actual issue, but the fix is trivial.

Fixes: #29
  • Loading branch information
InfusOnWoW committed Jul 30, 2024
1 parent 7c73357 commit 9d73b3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 = 21
local MINOR_VERSION = 22

---@class lib
local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
Expand Down Expand Up @@ -632,6 +632,9 @@ end

local function getNumSpells()
local _, _, offset, numSpells = GetSpellTabInfo(GetNumSpellTabs())
if not offset or not numSpells then
return 0
end
return offset + numSpells
end

Expand Down

0 comments on commit 9d73b3d

Please sign in to comment.