From b04084fbb3e8e39739d4245beea9380f5f2b53fd Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sat, 3 Jul 2010 12:30:32 -0500 Subject: [PATCH] Used math.abs instead of abs --- WeightsWatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index 58c57f4..663fa71 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -983,7 +983,7 @@ function WeightsWatcher.calculateWeight(bareItemStats, itemStats, weightsScale) for _, value in pairs(weightsScale) do if type(value) == "number" then - total = total + abs(value) + total = total + math.abs(value) end end if total == 0 then -- 1.7.9.5