Fixed bug that crashed game in magic shop when trying to sell an item.