changeset 471:1fc8da9b8cd8

Fixed bug caused by renaming changes in r469 (oops).
author Caleb Atherton <catherton@curse.com>
date Mon, 20 Jun 2016 05:25:06 -0400
parents 1344393a8000
children 39e87b600cad
files Main.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Sun Jun 19 20:47:42 2016 -0400
+++ b/Main.lua	Mon Jun 20 05:25:06 2016 -0400
@@ -968,7 +968,7 @@
         --local upgrade_type_id = tonumber(item_results[12])
         local instance_difficulty_id = tonumber(item_results[13]) or 0
         local num_bonus_ids = tonumber(item_results[14]) or 0
-        -- upgrade_value is optional since 6.2! can probably be detected using unknown_upgrade_related_id, but it's just as easy to check like this
+        -- upgrade_value is optional in 6.2! can be detected using upgrade_type_id, but it's just as easy to check like this
         local upgrade_value = tonumber(item_results[15 + num_bonus_ids]) or 0
 
         -- LEGION
@@ -980,12 +980,12 @@
         end
 
         -- If there is anything special (non-zero) for this item then we need to make note of everything
-        if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_id) ~= 0 then
+        if math.max(suffix_id, instance_difficulty_id, num_bonus_ids, upgrade_value) ~= 0 then
             item = DBEntry("items", item_id)
             item.suffix_id = suffix_id
             item.unique_id = bit.band(unique_id, 0xFFFF)
             item.instance_difficulty_id = instance_difficulty_id
-            item.upgrade_id = upgrade_id
+            item.upgrade_value = upgrade_value
 
             if process_bonus_ids then