comparison data.lua @ 68:42aac950bd67

Forgot pairs()
author contrebasse
date Sat, 14 May 2011 16:37:49 +0200
parents cd7e41015586
children 0675410645de
comparison
equal deleted inserted replaced
67:cd7e41015586 68:42aac950bd67
40 end 40 end
41 41
42 -- Check if the pseudo tradeskills have to be added 42 -- Check if the pseudo tradeskills have to be added
43 if GetTradeSkillLine() == GetSpellInfo(25229) then -- Jewelcrafting 43 if GetTradeSkillLine() == GetSpellInfo(25229) then -- Jewelcrafting
44 if not A.ProspectingDataLoaded then 44 if not A.ProspectingDataLoaded then
45 for itemID,data in A.ProspectingData do 45 for itemID,data in pairs(A.ProspectingData) do
46 A.data[itemID] = data 46 A.data[itemID] = data
47 end 47 end
48 A.ProspectingDataLoaded = true 48 A.ProspectingDataLoaded = true
49 end 49 end
50 elseif GetTradeSkillLine:GetText() == GetSpellInfo(45357) then -- Inscription 50 elseif GetTradeSkillLine:GetText() == GetSpellInfo(45357) then -- Inscription
51 if not A.MillingDataLoaded then 51 if not A.MillingDataLoaded then
52 for itemID,data in A.MillingData do 52 for itemID,data in pairs(A.MillingData) do
53 A.data[itemID] = data 53 A.data[itemID] = data
54 end 54 end
55 A.MillingDataLoaded = true 55 A.MillingDataLoaded = true
56 end 56 end
57 end 57 end