Quantcast

Fixed ranged dps showing up as 0 when dps was nil

Kevin Lyles [02-13-10 - 20:09]
Fixed ranged dps showing up as 0 when dps was nil
Filename
WeightsWatcher.lua
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 36d408b..cc7dfcc 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -838,7 +838,7 @@ function WeightsWatcher:getItemStats(link)
 		end
 	end
 	if ranged then
-		normalStats["Ranged DPS"] = normalStats["DPS"]
+		normalStats["Ranged DPS"] = rawget(normalStats, "DPS")
 		normalStats["DPS"] = nil
 	end
 	return normalStats, socketList, socketBonusStat