Handled singleStat return value properly for socket bonus stats
Kevin Lyles [01-31-10 - 08:37]
Handled singleStat return value properly for socket bonus stats
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 352f980..1c84419 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -923,7 +923,10 @@ end
function WeightsWatcher.parseLine(textL, textR, link)
local start, _, value = string.find(textL, socketBonus)
if start then
- return nil, nil, nil, WeightsWatcher.singleStat(value)
+ local socketBonusStat = WeightsWatcher.singleStat(value)
+ if socketBonusStat then
+ return nil, nil, nil, socketBonusStat
+ end
end
for _, regex in ipairs(SocketLines) do
local start, _, value = string.find(textL, regex)