From a74f852be866c5e2e6a25976f14396d2d9fc4dd3 Mon Sep 17 00:00:00 2001 From: captainurist <73941350+captainurist@users.noreply.github.com> Date: Sun, 15 Oct 2023 09:14:46 +0100 Subject: [PATCH] Removed unnecessary casts --- src/Engine/Spells/CastSpellInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engine/Spells/CastSpellInfo.cpp b/src/Engine/Spells/CastSpellInfo.cpp index da0987e4fed1..f7457feddd78 100644 --- a/src/Engine/Spells/CastSpellInfo.cpp +++ b/src/Engine/Spells/CastSpellInfo.cpp @@ -1502,14 +1502,14 @@ void CastSpellInfoHelpers::castSpell() { // step through until we hit that ench for (step = 0; step < ench_found; step++) { - current_item_apply_sum += pItemTable->pSpecialEnchantments[(ItemEnchantment)ench_array[step]].to_item_apply[this_equip_type]; + current_item_apply_sum += pItemTable->pSpecialEnchantments[ench_array[step]].to_item_apply[this_equip_type]; if (current_item_apply_sum >= target_item_apply_rand) { break; } } // set item ench - spell_item_to_enchant->special_enchantment = (ItemEnchantment)ench_array[step]; + spell_item_to_enchant->special_enchantment = ench_array[step]; spell_item_to_enchant->uAttributes |= ITEM_AURA_EFFECT_BLUE; ItemEnchantmentTimer = Timer::Second * 2; spell_failed = false;