Fixed an issue where enchanted items would get bonuses from uninitialised variables.