This is bad code. You're basically wasting memory and CPU by allocating a lot more, instead of doing a simple calculation. Store the weight together with the enchantments in `cEnchantmentsVector` (call it `cWeightedEnchantments`).