diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 51a66351bb..ddf66e78d1 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -3646,11 +3646,10 @@ int check_stealth(void) if (you.duration[DUR_SILENCE]) stealth -= 50; - if (stealth < 0) - stealth = 0; + stealth = std::max(0, stealth); return (stealth); -} // end check_stealth() +} static void _attribute_increase() { |