summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-29 10:40:35 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-29 10:40:35 -0500
commitc180044aa2caf76b61e7ff6e816a774f34cc346b (patch)
treebfce45d849bb7e6354f905c1ec3684a4071e1c32
parent856829a7daceeb108d1bc66af676d7dae800d90f (diff)
downloadcrawl-ref-c180044aa2caf76b61e7ff6e816a774f34cc346b.tar.gz
crawl-ref-c180044aa2caf76b61e7ff6e816a774f34cc346b.zip
Simplify.
-rw-r--r--crawl-ref/source/mstuff2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index ca687ed978..d336af52f2 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -2526,7 +2526,7 @@ bool ugly_thing_mutate(monsters *ugly, bool proximity)
{
monsters *ugly_near = monster_at(*ri);
- if (ugly_near == NULL
+ if (!ugly_near
|| ugly_near->type != MONS_UGLY_THING
&& ugly_near->type != MONS_VERY_UGLY_THING)
{