From 6771fc0647d8ac3f37d1ed7ea08789ec32f51fb5 Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 17 Nov 2010 21:48:48 +0000 Subject: [PATCH] - suppressed reported error in the runes module that shouldn't be able to happen (and i can't reproduce) --- modules/Runes.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/Runes.lua b/modules/Runes.lua index 8edf4d0..27108f1 100644 --- a/modules/Runes.lua +++ b/modules/Runes.lua @@ -274,6 +274,11 @@ function Runes.prototype:UpdateRuneType(event, rune) local thisRuneName = self.runeNames[GetRuneType(rune)] + -- i have no idea how this could happen but it's been reported, so... + if not thisRuneName then + return + end + self.frame.graphical[rune].rune:SetTexture(self:GetRuneTexture(thisRuneName)) self.frame.graphical[rune].rune:SetVertexColor(self:GetColor("Runes"..thisRuneName)) end