Fix bug which sometimes caused the exchange to take far more from the
player's inventory than expected.