Fixed a bug where debug mode didn't properly reset the player's
inventory.