diff Gear.lua @ 71:6abc0858b45e v28

fixed minor bug with pulling bank items into your bags
author yellowfive
date Sat, 18 Jul 2015 01:04:44 -0700
parents 69db1c3025ac
children 304d7ebb8e30
line wrap: on
line diff
--- a/Gear.lua	Mon Jul 06 17:40:09 2015 -0700
+++ b/Gear.lua	Sat Jul 18 01:04:44 2015 -0700
@@ -546,7 +546,7 @@
 		_pendingEquip = nil
 		return
 		
-	elseif bestItem and bestItem.bag and bestItem.bag >= NUM_BAG_SLOTS + 1 and bestItem.bag <= NUM_BAG_SLOTS + NUM_BANKBAGSLOTS then
+	elseif bestItem and bestItem.bag and (bestItem.bag == BANK_CONTAINER or bestItem.bag >= NUM_BAG_SLOTS + 1 and bestItem.bag <= NUM_BAG_SLOTS + NUM_BANKBAGSLOTS) then
 		-- find first empty bag slot
 		local invBag, invSlot = findFirstEmptyBagSlot()
 		if not invBag then