# HG changeset patch # User James D. Callahan III # Date 1359419760 21600 # Node ID 86b3d5b00a9010d73ac02bd884ecf97294329c5b # Parent cbd156d9199e4b086d0a3d5a9fcc9cc2e554891b Fixed error caused by attempting to set item.upgrade_id where item was not defined. diff -r cbd156d9199e -r 86b3d5b00a90 Main.lua --- a/Main.lua Mon Jan 28 11:44:17 2013 -0600 +++ b/Main.lua Mon Jan 28 18:36:00 2013 -0600 @@ -837,6 +837,7 @@ return end local item = DBEntry("items", item_id) + item.upgrade_id = upgrade_id item.upgrades = item.upgrades or {} item.upgrades[upgrade_id] = item.upgrades[upgrade_id] or {} @@ -865,7 +866,6 @@ end if upgrade_id and upgrade_id ~= 0 then - item.upgrade_id = upgrade_id DatamineTT:SetHyperlink(item_link) ScrapeItemUpgradeStats(item_id, upgrade_id, reforge_id) end