diff amr-constants.lua @ 33:4ba69d2ee252 v9

fixed bug with gem changes not appearing sometimes, mainWindow crash on startup, lua error for unknown item tooltips
author yellowfive
date Sat, 18 Oct 2014 18:13:55 -0700
parents 44c285acfff0
children 561cf98ced21
line wrap: on
line diff
--- a/amr-constants.lua	Sat Oct 18 10:33:50 2014 -0700
+++ b/amr-constants.lua	Sat Oct 18 18:13:55 2014 -0700
@@ -47,7 +47,13 @@
     table.insert(parts, itemObj.gemIds[2])
     table.insert(parts, itemObj.gemIds[3])
     table.insert(parts, itemObj.gemIds[4])
-    table.insert(parts, -math.abs(itemObj.suffixId))
+    
+    if itemObj.suffixId == 0 then
+        table.insert(parts, 0)
+    else
+        table.insert(parts, -math.abs(itemObj.suffixId))
+    end
+    
     table.insert(parts, 0)
     table.insert(parts, UnitLevel("player"))
     table.insert(parts, itemObj.upgradeId)