summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-mis.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-18 12:34:35 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-18 12:34:35 -0600
commita7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d (patch)
tree8eab6fe7c8a5fcc497ca2ae90872934141b0a507 /crawl-ref/source/spl-mis.cc
parent67d62e68ee2a76dcaf82421962a1fb2a2d4000f7 (diff)
downloadcrawl-ref-a7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d.tar.gz
crawl-ref-a7cf1b9a69b32a88047c3e9fb93bc02a9ca5840d.zip
Clean up rotting resistance checks, as they're effectively boolean.
Diffstat (limited to 'crawl-ref/source/spl-mis.cc')
-rw-r--r--crawl-ref/source/spl-mis.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-mis.cc b/crawl-ref/source/spl-mis.cc
index bfe11d25b6..8666fa8fa1 100644
--- a/crawl-ref/source/spl-mis.cc
+++ b/crawl-ref/source/spl-mis.cc
@@ -1652,7 +1652,7 @@ void MiscastEffect::_necromancy(int severity)
_potion_effect(POT_SLOWING, 15);
break;
case 2:
- if (target->res_rotting() == 0)
+ if (!target->res_rotting())
{
if (you.can_smell())
{