diff options
author | Neil Moore <neil@s-z.org> | 2014-07-10 23:51:29 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-10 23:51:49 -0400 |
commit | 21f9508e466c7a2f130a500bc84fb7dea3c2b24d (patch) | |
tree | 62f9eee3b38311ad9bf7f2955183b31936a1fe52 /crawl-ref/source/zotdef.cc | |
parent | ae4456353af15664a6283f0fd2e4e99b37f81805 (diff) | |
download | crawl-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.cc | 3 |
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; } |