Skip to content

Commit

Permalink
Fix range/period handling in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Mar 25, 2024
1 parent a1a61e1 commit 04a88f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/StatLogic/StatLogic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1671,11 +1671,13 @@ do
local currentStats = {}
for j, value in ipairs(values) do
local idTable = stats[j]
if #idTable > 0 then
if type(idTable) == "table" and #idTable > 0 then
for _, id in ipairs(idTable) do
AddStat(id, value, currentStats)
if id then
AddStat(id, value, currentStats)
end
end
else
elseif idTable then
AddStat(idTable, value, currentStats)
end
end
Expand Down

0 comments on commit 04a88f3

Please sign in to comment.