Fix row hiding

Sasky [03-25-15 - 07:14]
Fix row hiding
Filename
CyrHUD.lua
diff --git a/CyrHUD.lua b/CyrHUD.lua
index f3178ac..083b3c3 100644
--- a/CyrHUD.lua
+++ b/CyrHUD.lua
@@ -86,6 +86,12 @@ function CyrHUD:reconfigureLabels()
     end
 end

+function CyrHUD:hideRow(index)
+    if self.entries[index] then
+        self.entries[index].main:SetHidden(true)
+    end
+end
+
 function CyrHUD:getUIRow(index)
     if #self.entries < index then
         table.insert(self.entries, self.Label())
@@ -107,7 +113,7 @@ function CyrHUD:printAll()
         i = i + 1
     end
     for j=i,#self.entries do
-        self:getUIRow(i):hide()
+        self:hideRow(j)
     end
 end