Skip to content

Commit

Permalink
Fix attempt to index a nil value in AddMany
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Oct 25, 2022
1 parent 98d73ec commit a74957d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeakAuras/WeakAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2482,7 +2482,7 @@ function Private.AddMany(tbl, takeSnapshots)

for id in pairs(anchorTargets) do
local data = idtable[id]
if data and data.parent == nil or idtable[data.parent].regionType ~= "dynamicgroup" then
if data and (data.parent == nil or idtable[data.parent].regionType ~= "dynamicgroup") then
Private.EnsureRegion(id)
end
end
Expand Down

0 comments on commit a74957d

Please sign in to comment.