libpredict: check and abort on empty heal values

This commit is contained in:
shagu
2023-07-29 15:44:49 +02:00
parent 52fa6572a0
commit 225a84bc8d
+1 -1
View File
@@ -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