Fixed a mistake made in commit 09972530a99f376bfa70ec6dc6d3fdffa569bc88

The function that I had removed was not double but for the inventory
check, the other part is for the equipment, added back it.