Fixed nil error on creating a new weight, bumped to version 1.2b8
Kevin Lyles [06-14-10 - 23:11]
Fixed nil error on creating a new weight, bumped to version 1.2b8
diff --git a/WeightsWatcher.toc b/WeightsWatcher.toc
index caeda1c..93388ee 100644
--- a/WeightsWatcher.toc
+++ b/WeightsWatcher.toc
@@ -2,7 +2,7 @@
## Title: Weights Watcher
## Notes: Ranks gear according to customizable stat weights
## Author: The Flying Squirrels
-## Version: 1.2b7
+## Version: 1.2b8
## OptionalDeps: AtlasLoot
## SavedVariables: ww_vars
## SavedVariablesPerCharacter: ww_charVars
diff --git a/weights.lua b/weights.lua
index 1ba78e4..7a674f4 100644
--- a/weights.lua
+++ b/weights.lua
@@ -383,7 +383,9 @@ function configNewWeight(class, weight, statList)
ww_newWeight.editBox:SetText(weight)
end
if not statList then
- statList = {}
+ statList = {
+ triggers = {}
+ }
end
ww_newWeight.statList = statList
end)