comparison Core.lua @ 139:7e1496b25311

Fixed invalid variable from when link was changed to itemID
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sat, 02 Oct 2010 21:15:16 -0700
parents 526036e4358f
children 15a259503d63
comparison
equal deleted inserted replaced
138:7d258c041b11 139:7e1496b25311
245 end 245 end
246 246
247 for itemID, count in pairs(pastInventory.items) do 247 for itemID, count in pairs(pastInventory.items) do
248 if current.items[itemID] == nil then 248 if current.items[itemID] == nil then
249 diff[itemID] = -count 249 diff[itemID] = -count
250 self:Debug("3 diff[" .. liitemIDnk .. "]=" .. diff[itemID]) 250 self:Debug("3 diff[" .. itemID .. "]=" .. diff[itemID])
251 elseif current.items[itemID] - count ~= 0 then 251 elseif current.items[itemID] - count ~= 0 then
252 diff[itemID] = current.items[itemID] - pastInventory.items[itemID] 252 diff[itemID] = current.items[itemID] - pastInventory.items[itemID]
253 self:Debug("4 diff[" .. itemID .. "]=" .. diff[itemID]) 253 self:Debug("4 diff[" .. itemID .. "]=" .. diff[itemID])
254 end 254 end
255 end 255 end