From b49afcaba9c8e79d4bcad580ebf7ac08a29d5dce Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 10 May 2024 10:33:35 +0200 Subject: [PATCH] superwow: only remove existing entries on fail --- modules/superwow.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/superwow.lua b/modules/superwow.lua index 94a4637f..e44c9567 100644 --- a/modules/superwow.lua +++ b/modules/superwow.lua @@ -38,12 +38,14 @@ pfUI:RegisterModule("superwow", "vanilla", function () local guid = arg1 -- delete all cast entries of guid - libcast.db[guid].cast = nil - libcast.db[guid].rank = nil - libcast.db[guid].start = nil - libcast.db[guid].casttime = nil - libcast.db[guid].icon = nil - libcast.db[guid].channel = nil + if libcast.db[guid] then + libcast.db[guid].cast = nil + libcast.db[guid].rank = nil + libcast.db[guid].start = nil + libcast.db[guid].casttime = nil + libcast.db[guid].icon = nil + libcast.db[guid].channel = nil + end end end) end) \ No newline at end of file