Skip to content

Commit

Permalink
Merge pull request #2751 from Spoony36/Fix-Commit-Error
Browse files Browse the repository at this point in the history
Fix commit error
  • Loading branch information
Ludovicus-Maior committed May 21, 2024
2 parents e34e72e + 32616af commit 4c39438
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion WoWPro/WoWPro.lua
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,14 @@ function WoWPro:OnEnable()

WoWPro:dbp("Scan to purge PlayerGetTimerunningSeasonID")
-- Purge guides that do not match the SeasonID
local seasonID = _G.PlayerGetTimerunningSeasonID()
local seasonID
if _G.PlayerGetTimerunningSeasonID then
seasonID = _G.PlayerGetTimerunningSeasonID()
else
WoWPro:dbp("PlayerGetTimerunningSeasonID function is not available")
return
end

local to_purge = {}
for gid, guide in pairs(WoWPro.Guides) do
if guide['TimerunningSeasonID'] ~= seasonID then
Expand All @@ -579,6 +586,7 @@ function WoWPro:OnEnable()
end



-- Set up the Nickname -> Guide map.
WoWPro.Nickname2Guide = {}
for guidID,guide in pairs(WoWPro.Guides) do
Expand Down

0 comments on commit 4c39438

Please sign in to comment.