Permalink
Browse files

Don't ned conditional anymore

  • Loading branch information...
tekkub committed Dec 9, 2009
1 parent 9d427d5 commit c4ed7e3a45f5885b80b2fcd2173ae7adc27c08a8
Showing with 2 additions and 3 deletions.
  1. +2 −3 VendorBait.lua
View
@@ -1,5 +1,4 @@
-local prefix = (select(4, GetBuildInfo()) < 30300) and "QuestRewardItem" or "QuestInfoItem"
local f = LibStub("tekShiner").new(QuestRewardScrollChildFrame)
f:Hide()
@@ -17,10 +16,10 @@ f:SetScript("OnEvent", function(self)
if besti then
self:ClearAllPoints()
- self:SetAllPoints(prefix..besti.."IconTexture")
+ self:SetAllPoints("QuestInfoItem"..besti.."IconTexture")
self:Show()
end
end)
-if _G[prefix.."1"]:IsVisible() then f:GetScript("OnEvent")(f) end
+if QuestInfoItem1:IsVisible() then f:GetScript("OnEvent")(f) end

0 comments on commit c4ed7e3

Please sign in to comment.