Skip to content

Commit

Permalink
Follow @eltank's advice re not being paranoid
Browse files Browse the repository at this point in the history
There really shouldn't be any way that it'll return negative now, and
it would probably be better to have some chance of realizing this
(via the negative return) if it did.
  • Loading branch information
actual-nh committed Aug 29, 2021
1 parent a179154 commit d758e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ int monster::heal( const int delta_hp, bool overheal )
if( hp > maxhp && !overheal ) {
hp = maxhp;
}
return std::max( 0, hp - old_hp );
return hp - old_hp;
}

void monster::set_hp( const int hp )
Expand Down

0 comments on commit d758e4c

Please sign in to comment.