Skip to content

Commit

Permalink
Sync: skip entry if it is not a table (e.g. DKPMeta/LootMeta)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthintr committed Jun 14, 2020
1 parent 6c344cd commit 6741971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/Sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ function MonDKP_SyncDeleted()
local deleted = {}

for k,v in pairs(MonDKP:GetTable(MonDKP_Archive, true)) do
if MonDKP:GetTable(MonDKP_Archive, true)[k].deleted then
-- skip entry if it is not a table (e.g. DKPMeta/LootMeta)
if type(MonDKP:GetTable(MonDKP_Archive, true)[k]) == "table" and MonDKP:GetTable(MonDKP_Archive, true)[k].deleted then
table.insert(deleted, { player=k, deleted=v.deleted, edited=v.edited })
end
end
Expand Down

0 comments on commit 6741971

Please sign in to comment.