superwow: only remove existing entries on fail

This commit is contained in:
shagu
2024-05-10 10:33:35 +02:00
parent 604f455042
commit b49afcaba9
+2
View File
@@ -38,6 +38,7 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
local guid = arg1 local guid = arg1
-- delete all cast entries of guid -- delete all cast entries of guid
if libcast.db[guid] then
libcast.db[guid].cast = nil libcast.db[guid].cast = nil
libcast.db[guid].rank = nil libcast.db[guid].rank = nil
libcast.db[guid].start = nil libcast.db[guid].start = nil
@@ -45,5 +46,6 @@ pfUI:RegisterModule("superwow", "vanilla", function ()
libcast.db[guid].icon = nil libcast.db[guid].icon = nil
libcast.db[guid].channel = nil libcast.db[guid].channel = nil
end end
end
end) end)
end) end)