Skip to content

Commit

Permalink
Fix enchantment (#78739)
Browse files Browse the repository at this point in the history
* Fix #78735

* fix `clear()`
  • Loading branch information
osuphobia authored Dec 24, 2024
1 parent 8fd2039 commit 44b3817
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/magic_enchantment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1466,12 +1466,19 @@ void enchant_cache::clear()
skill_values_multiply.clear();
damage_values_add.clear();
damage_values_multiply.clear();
armor_values_add.clear();
armor_values_multiply.clear();
extra_damage_add.clear();
extra_damage_multiply.clear();
special_vision_vector.clear();
hit_me_effect.clear();
hit_you_effect.clear();
ench_effects.clear();
emitter.reset();
mutations.clear();
modified_bodyparts.clear();
intermittent_activation.clear();
details.clear();
}

bool enchant_cache::operator==( const enchant_cache &rhs ) const
Expand Down

0 comments on commit 44b3817

Please sign in to comment.