Mercurial > wow > wowdb-profiler
comparison Main.lua @ 225:86b3d5b00a90 1.0.37
Fixed error caused by attempting to set item.upgrade_id where item was not defined.
| author | James D. Callahan III <jcallahan@curse.com> |
|---|---|
| date | Mon, 28 Jan 2013 18:36:00 -0600 |
| parents | 008229ac5568 |
| children | 3dd05b29bc6f |
comparison
equal
deleted
inserted
replaced
| 224:cbd156d9199e | 225:86b3d5b00a90 |
|---|---|
| 835 | 835 |
| 836 if not create_entry then | 836 if not create_entry then |
| 837 return | 837 return |
| 838 end | 838 end |
| 839 local item = DBEntry("items", item_id) | 839 local item = DBEntry("items", item_id) |
| 840 item.upgrade_id = upgrade_id | |
| 840 item.upgrades = item.upgrades or {} | 841 item.upgrades = item.upgrades or {} |
| 841 item.upgrades[upgrade_id] = item.upgrades[upgrade_id] or {} | 842 item.upgrades[upgrade_id] = item.upgrades[upgrade_id] or {} |
| 842 | 843 |
| 843 for stat, amount in pairs(intermediary) do | 844 for stat, amount in pairs(intermediary) do |
| 844 item.upgrades[upgrade_id][stat] = amount | 845 item.upgrades[upgrade_id][stat] = amount |
| 863 item.suffix_id = suffix_id | 864 item.suffix_id = suffix_id |
| 864 item.unique_id = bit.band(unique_id, 0xFFFF) | 865 item.unique_id = bit.band(unique_id, 0xFFFF) |
| 865 end | 866 end |
| 866 | 867 |
| 867 if upgrade_id and upgrade_id ~= 0 then | 868 if upgrade_id and upgrade_id ~= 0 then |
| 868 item.upgrade_id = upgrade_id | |
| 869 DatamineTT:SetHyperlink(item_link) | 869 DatamineTT:SetHyperlink(item_link) |
| 870 ScrapeItemUpgradeStats(item_id, upgrade_id, reforge_id) | 870 ScrapeItemUpgradeStats(item_id, upgrade_id, reforge_id) |
| 871 end | 871 end |
| 872 end | 872 end |
| 873 | 873 |
