Skip to content

Commit

Permalink
Update src/creatures/combat/combat.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel authored Apr 22, 2024
1 parent 8270551 commit 07bf73f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/creatures/combat/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,9 @@ void Combat::setupChain(const std::shared_ptr<Weapon> &weapon) {
0, 0, 0, 1, 0, 0, 0,
};
// clang-format on
auto m_area = std::make_unique<AreaCombat>();
m_area->setupArea(areaList, 7);
setArea(m_area);
auto area = std::make_unique<AreaCombat>();
area->setupArea(areaList, 7);
setArea(area);
g_logger().trace("Weapon: {}, element type: {}", Item::items[weapon->getID()].name, weapon->params.combatType);
setParam(COMBAT_PARAM_TYPE, weapon->params.combatType);
if (weaponType != WEAPON_WAND) {
Expand Down

0 comments on commit 07bf73f

Please sign in to comment.