changeset 116:bccce18e12cb v54

Fixed a bug with transition from v52 crucible data to v53+.
author yellowfive
date Wed, 04 Oct 2017 11:18:19 -0700
parents 8bef8f88361c
children 35fec08d69b9
files AskMrRobot-Serializer/AskMrRobot-Serializer.lua AskMrRobot.toc Export.lua
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/AskMrRobot-Serializer/AskMrRobot-Serializer.lua	Wed Oct 04 01:09:12 2017 -0700
+++ b/AskMrRobot-Serializer/AskMrRobot-Serializer.lua	Wed Oct 04 11:18:19 2017 -0700
@@ -1,7 +1,7 @@
 -- AskMrRobot-Serializer will serialize and communicate character data between users.
 -- This is used primarily to associate character information to logs uploaded to askmrrobot.com.
 
-local MAJOR, MINOR = "AskMrRobot-Serializer", 53
+local MAJOR, MINOR = "AskMrRobot-Serializer", 54
 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
 
 if not Amr then return end -- already loaded by something else
--- a/AskMrRobot.toc	Wed Oct 04 01:09:12 2017 -0700
+++ b/AskMrRobot.toc	Wed Oct 04 11:18:19 2017 -0700
@@ -1,7 +1,7 @@
 ## Interface: 70300
 ## Title: Ask Mr. Robot
 ## Author: Team Robot, Inc.
-## Version: 53
+## Version: 54
 ## Notes: Gear import/export, combat logging, and more.
 ## URL: www.askmrrobot.com
 ## SavedVariables: AskMrRobotDb3
--- a/Export.lua	Wed Oct 04 01:09:12 2017 -0700
+++ b/Export.lua	Wed Oct 04 11:18:19 2017 -0700
@@ -383,6 +383,9 @@
 			end			
 			previewKey = table.concat(previewKey, "_")
 			
+			if not crucible.Previewed then
+				crucible.Previewed = {}
+			end
 			crucible.Previewed[previewKey] = preview
 		end
 	end