fix PartyTab Crash with thresholds (#8314)
This commit is contained in:
@@ -59,6 +59,10 @@ function modLib.parseTags(line)
|
||||
if tag ~= "" then
|
||||
local tagName, tagValue = tag:match("^(%a+)=(.+)")
|
||||
if tagName then
|
||||
-- list of all the tag parts that should be numbers
|
||||
if ({threshold = true})[tagName] then
|
||||
tagValue = tonumber(tagValue)
|
||||
end
|
||||
tagSet[tagName] = tagValue == "true" and true or tagValue
|
||||
else
|
||||
ConPrintf("Error tag invalid: "..tag)
|
||||
|
||||
Reference in New Issue
Block a user