From 225a84bc8dd6715c656be70a7d0452e197bf41dc Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 29 Jul 2023 15:44:49 +0200 Subject: [PATCH] libpredict: check and abort on empty heal values --- libs/libpredict.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index aef32b1f..e4d44c17 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -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