comparison Modules/Scanner.lua @ 95:31493364b163

Fixed GetItemId usage to the proper capitals.
author Zerotorescue
date Sat, 08 Jan 2011 01:39:04 +0100
parents a12d22ef3f39
children 252292b703ce
comparison
equal deleted inserted replaced
94:14a4d757d683 95:31493364b163
68 68
69 while slotId ~= 0 do 69 while slotId ~= 0 do
70 -- A not equal-comparison should be quicker than a larger than-comparison 70 -- A not equal-comparison should be quicker than a larger than-comparison
71 71
72 local itemLink = GetGuildBankItemLink(tabId, slotId); 72 local itemLink = GetGuildBankItemLink(tabId, slotId);
73 local itemId = itemLink and addon:GetItemID(itemLink); 73 local itemId = itemLink and addon:GetItemId(itemLink);
74 local itemCount = itemLink and select(2, GetGuildBankItemInfo(tabId, slotId)); 74 local itemCount = itemLink and select(2, GetGuildBankItemInfo(tabId, slotId));
75 75
76 if itemLink and itemId and itemCount and itemCount > 0 then 76 if itemLink and itemId and itemCount and itemCount > 0 then
77 -- If there is actually an item in this slot 77 -- If there is actually an item in this slot
78 local itemMove; 78 local itemMove;