Mercurial > wow > askmrrobot
changeset 37:4d1a9865c90e v11
fixed void storage reading bug
author | yellowfive |
---|---|
date | Sun, 19 Oct 2014 19:11:53 -0700 |
parents | b8df1bb7cfae |
children | 4f0ce96aa90a |
files | AskMrRobot.lua AskMrRobot.toc |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/AskMrRobot.lua Sat Oct 18 21:57:39 2014 -0700 +++ b/AskMrRobot.lua Sun Oct 19 19:11:53 2014 -0700 @@ -407,18 +407,19 @@ local voidItems = {} local VOID_STORAGE_MAX = 80 local VOID_STORAGE_PAGES = 2 - local i + for page = 1,VOID_STORAGE_PAGES do for i = 1,VOID_STORAGE_MAX do local itemId = GetVoidItemInfo(page, i) if itemId then - local itemLink = GetVoidItemHyperlinkString(page, i); + local itemLink = GetVoidItemHyperlinkString(((page - 1) * VOID_STORAGE_MAX) + i); if itemLink then tinsert(voidItems, itemLink) end end end end + AmrDb.VoidItems = voidItems end end
--- a/AskMrRobot.toc Sat Oct 18 21:57:39 2014 -0700 +++ b/AskMrRobot.toc Sun Oct 19 19:11:53 2014 -0700 @@ -1,7 +1,7 @@ ## Interface: 60000 ## Title: Ask Mr. Robot ## Author: Team Robot, Inc. -## Version: 10 +## Version: 11 ## Notes: Exports/Imports data to/from askmrrobot.com. ## URL: www.askmrrobot.com ## DefaultState: Enabled