Mercurial > wow > askmrrobot
diff AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 129:d9a059484b22 v60
Several bug fixes for 8.0.
author | yellowfive |
---|---|
date | Wed, 18 Jul 2018 13:08:22 -0700 |
parents | 65c285394049 |
children | 318c93e0cd6b |
line wrap: on
line diff
--- a/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Tue Jul 17 16:32:43 2018 -0700 +++ b/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Wed Jul 18 13:08:22 2018 -0700 @@ -1,6 +1,6 @@ -- AskMrRobot-Serializer will serialize and communicate character data between users. -local MAJOR, MINOR = "AskMrRobot-Serializer", 59 +local MAJOR, MINOR = "AskMrRobot-Serializer", 60 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not Amr then return end -- already loaded by something else @@ -228,20 +228,24 @@ item.relicBonusIds[1] = readBonusIdList(parts, 17 + offset, 16 + offset + numBonuses) end - offset= offset + numBonuses + offset = offset + numBonuses if #parts > 17 + offset then numBonuses = tonumber(parts[17 + offset]) - if numBonuses > 0 then - item.relicBonusIds[2] = readBonusIdList(parts, 18 + offset, 17 + offset + numBonuses) + if numBonuses then + if numBonuses > 0 then + item.relicBonusIds[2] = readBonusIdList(parts, 18 + offset, 17 + offset + numBonuses) + end + + offset= offset + numBonuses + if #parts > 18 + offset then + numBonuses = tonumber(parts[18 + offset]) + if numBonuses then + if numBonuses > 0 then + item.relicBonusIds[3] = readBonusIdList(parts, 19 + offset, 18 + offset + numBonuses) + end + end + end end - - offset= offset + numBonuses - if #parts > 18 + offset then - numBonuses = tonumber(parts[18 + offset]) - if numBonuses > 0 then - item.relicBonusIds[3] = readBonusIdList(parts, 19 + offset, 18 + offset + numBonuses) - end - end end end end