From 3bf257227f28a023b9d402d7f3794f4fef04e8b1 Mon Sep 17 00:00:00 2001 From: tekkub Date: Tue, 8 Mar 2011 21:17:50 -0700 Subject: [PATCH] Some people don't even know what honor points are Closes #24 --- GnomishVendorShrinker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GnomishVendorShrinker.lua b/GnomishVendorShrinker.lua index 7936476..a78cf66 100644 --- a/GnomishVendorShrinker.lua +++ b/GnomishVendorShrinker.lua @@ -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)