Fix trade exploit

Using the Max Sale button it was possible to "invert" the buying/selling state.