Quantcast

Bug fix

Scott Sibley [01-21-11 - 04:06]
Bug fix
Filename
Modules/Bars/Bars.lua
diff --git a/Modules/Bars/Bars.lua b/Modules/Bars/Bars.lua
index 70c4679..ece0666 100644
--- a/Modules/Bars/Bars.lua
+++ b/Modules/Bars/Bars.lua
@@ -176,6 +176,8 @@ end


 function updateBar(widget, bar)
+	assert(widget and bar)
+
 	bar:SetValue(widget.val1 * 100)

 	local r, g, b = 0, 0, 1