diff options
-rw-r--r-- | crawl-ref/source/mon-util.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 96465c7c1e..ead19e9cc2 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -471,9 +471,8 @@ bool invalid_monster_class(int mclass) bool invalid_monster_index(int i) { - return (i != ANON_FRIENDLY_MONSTER - && i >= 0 - && i < MAX_MONSTERS); + return (i < 0 + || i >= MAX_MONSTERS); } bool mons_is_statue(int mc) |