summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/zotdef.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-10 23:51:29 -0400
committerNeil Moore <neil@s-z.org>2014-07-10 23:51:49 -0400
commit21f9508e466c7a2f130a500bc84fb7dea3c2b24d (patch)
tree62f9eee3b38311ad9bf7f2955183b31936a1fe52 /crawl-ref/source/zotdef.cc
parentae4456353af15664a6283f0fd2e4e99b37f81805 (diff)
downloadcrawl-ref-21f9508e466c7a2f130a500bc84fb7dea3c2b24d.tar.gz
crawl-ref-21f9508e466c7a2f130a500bc84fb7dea3c2b24d.zip
Improve a comment.
Diffstat (limited to 'crawl-ref/source/zotdef.cc')
-rw-r--r--crawl-ref/source/zotdef.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/zotdef.cc b/crawl-ref/source/zotdef.cc
index df2551bf40..34dadb5238 100644
--- a/crawl-ref/source/zotdef.cc
+++ b/crawl-ref/source/zotdef.cc
@@ -941,10 +941,9 @@ bool zotdef_create_altar(bool wizmode)
const string name = lowercase_string(god_name(gi));
const size_t pos = name.find(spec);
- // Note that npos is never less than bestpos, so a failure to
- // find skips it.
if (pos < bestpos)
{
+ // npos is never less than bestpos, so the spec was found.
bestpos = pos;
god = gi;
}