Quantcast

Merge pull request #17 from Blazeflack/patch-1

Xruptor [01-17-15 - 01:55]
Merge pull request #17 from Blazeflack/patch-1

Fix for issue #16: Bank not synced when exiting game
Filename
BagSync.lua
diff --git a/BagSync.lua b/BagSync.lua
index 1e6f250..026481c 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -1255,6 +1255,7 @@ function BagSync:BAG_UPDATE(event, bagid)
 			return
 		end

+		if bagname == 'bank' and not atBank then return; end
 		--now save the item information in the bag from bagupdate, this could be bag or bank
 		SaveBag(bagname, bagid)

@@ -1469,4 +1470,4 @@ function BagSync:TRADE_SKILL_SHOW()
 		end

 	end
-end
\ No newline at end of file
+end