diff Gear.lua @ 67:932885bb1a6f v26

bug fix to gear swapping, fixed font issue with asian regions
author yellowfive
date Mon, 29 Jun 2015 17:05:47 -0700
parents cf2b6b9a8337
children 69db1c3025ac
line wrap: on
line diff
--- a/Gear.lua	Fri Jun 26 10:43:14 2015 -0700
+++ b/Gear.lua	Mon Jun 29 17:05:47 2015 -0700
@@ -532,9 +532,9 @@
 	end
 	
 	-- bank
-	bestItem, bestDiff = scanBagForItem(item, BANK_CONTAINER, bestItem, bestDiff, bestLink)
+	bestItem, bestDiff, bestLink = scanBagForItem(item, BANK_CONTAINER, bestItem, bestDiff, bestLink)
 	for bagId = NUM_BAG_SLOTS + 1, NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do
-		bestItem, bestDiff = scanBagForItem(item, bagId, bestItem, bestDiff, bestLink)
+		bestItem, bestDiff, bestLink = scanBagForItem(item, bagId, bestItem, bestDiff, bestLink)
 	end
 	
 	ClearCursor()