Some people don't even know what honor points are

Closes #24
This commit is contained in:
tekkub 2011-03-08 21:17:50 -07:00
parent 36c265a5e1
commit 3bf257227f
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ local function SetValue(self, text, icon, link)
local id = link and link:match("item:(%d+)")
self.link, self.index, self.itemIndex = nil
if id then self.link = link end
if id and GetItemCount(id) < text or link and not id and GetCurencyCount(link) < text then
if id and (GetItemCount(id) or 0) < text or link and not id and (GetCurencyCount(link) or 0) < text then
color = "|cffff9999"
end
self.text:SetText(color..text)