Skip to content

Commit

Permalink
Update cItem.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonSlayer62 committed Jan 16, 2025
1 parent 485cc17 commit cce1a20
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/cItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,7 @@ SI16 CItem::GetDurabilityHpBonus(void) const
void CItem::SetDurabilityHpBonus(SI16 newValue)
{
durabilityHpBonus = newValue;
if (CanBeObjType(OT_ITEM))
{
(static_cast<CItem*>(this))->UpdateRegion();
}
UpdateRegion();
}

//o------------------------------------------------------------------------------------------------o
Expand Down

0 comments on commit cce1a20

Please sign in to comment.