Skip to content

Commit

Permalink
Fix a crash on equip (Monkooky)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliptic committed Feb 29, 2024
1 parent 3570a56 commit 4c7f439
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crawl-ref/source/player-equip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,8 @@ static void _handle_regen_item_equip(const item_def& item)
const bool regen_hp = (is_artefact(item)
&& artefact_property(item, ARTP_REGENERATION))
|| item.is_type(OBJ_JEWELLERY, AMU_REGENERATION)
|| armour_type_prop(item.sub_type, ARMF_REGENERATION);
|| item.base_type == OBJ_ARMOUR
&& armour_type_prop(item.sub_type, ARMF_REGENERATION);

const bool regen_mp = (is_artefact(item)
&& artefact_property(item, ARTP_MANA_REGENERATION))
Expand Down

0 comments on commit 4c7f439

Please sign in to comment.