Skip to content

Commit

Permalink
libpredict: check and abort on empty heal values
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Jul 29, 2023
1 parent 52fa657 commit 225a84b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/libpredict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ resetcache:SetScript("OnEvent", function()
end)

local function UpdateCache(spell, heal, crit)
local heal = heal and tonumber(heal)
if not spell or not heal then return end
local heal = tonumber(heal)

if not cache[spell] or cache[spell][2] then
-- skills or equipment changed, save whatever is detected
Expand Down

0 comments on commit 225a84b

Please sign in to comment.