Quantcast

FIX: GetInboxItem() change in 7.0.3

Alexander Hess [07-27-16 - 00:54]
FIX: GetInboxItem() change in 7.0.3

Return parameters of GetInboxItem() have changed in 7.0.3

Instead of returning name, itemTexture, count, quality, canUse the function now returns name, itemID, itemTexture, count, quality, canUse

Source: http://wow.gamepedia.com/Patch_7.0.3/API_changes
Filename
BagSync.lua
diff --git a/BagSync.lua b/BagSync.lua
index 96a125f..5d94ed2 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -415,7 +415,7 @@ local function ScanMailbox()
 	if (numInbox > 0) then
 		for mailIndex = 1, numInbox do
 			for i=1, ATTACHMENTS_MAX_RECEIVE do
-				local name, itemTexture, count, quality, canUse = GetInboxItem(mailIndex, i)
+				local name, itemID, itemTexture, count, quality, canUse = GetInboxItem(mailIndex, i)
 				local link = GetInboxItemLink(mailIndex, i)

 				if name and link and ToShortLink(link) then