- suppressed reported error in the runes module that shouldn't be able to happen (and i can't reproduce)

This commit is contained in:
Parnic
2010-11-17 21:48:48 +00:00
parent 2acb931960
commit 6771fc0647

View File

@ -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