summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-info.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-31 13:43:29 -0400
committerNeil Moore <neil@s-z.org>2014-05-31 13:43:29 -0400
commit0555b25a71a17a55a353b34aacdb48b36e26f48f (patch)
tree118e5c4a4b8451b33f9f597675cd41b5bd4af269 /crawl-ref/source/mon-info.cc
parentbc2dfad1e5be1d88fd3c578a4183cf53572c1bca (diff)
downloadcrawl-ref-0555b25a71a17a55a353b34aacdb48b36e26f48f.tar.gz
crawl-ref-0555b25a71a17a55a353b34aacdb48b36e26f48f.zip
Replace a few uses of a <= b <= c (#8594)
One of them was incorrect, and the other correct but confusing.
Diffstat (limited to 'crawl-ref/source/mon-info.cc')
-rw-r--r--crawl-ref/source/mon-info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc
index bef7307a04..ae0b0d5b9a 100644
--- a/crawl-ref/source/mon-info.cc
+++ b/crawl-ref/source/mon-info.cc
@@ -1206,7 +1206,7 @@ bool monster_info::less_than(const monster_info& m1, const monster_info& m2,
return m1.number > m2.number;
if (m1.type == MONS_BALLISTOMYCETE)
- return m1.number > 0 > (m2.number > 0);
+ return m1.number > 0 && m2.number <= 0;
// Shifters after real monsters of the same type.
if (m1.is(MB_SHAPESHIFTER) != m2.is(MB_SHAPESHIFTER))