Trade fix

Fix a bug in trade mechanic. It was possible to exploit it in the following way:
Buy one item, press the "max sale" button, and the offer will be accepted. You will get both the item and all the merchants gold. 

From what I can tell this was broken since the first implementation.