Mercurial > wow > askmrrobot
diff AskMrRobot.lua @ 37:4d1a9865c90e v11
fixed void storage reading bug
author | yellowfive |
---|---|
date | Sun, 19 Oct 2014 19:11:53 -0700 |
parents | d964099e4783 |
children | 0e78d6424532 |
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