From b3bc3bc812f3c99cf1653af930ca98562a4324d9 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sun, 31 Jan 2010 02:37:07 -0600 Subject: [PATCH] Handled singleStat return value properly for socket bonus stats --- WeightsWatcher.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 1.7.9.5