diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-17 02:27:28 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-17 22:25:38 +0200 |
commit | df690be638a174e82a272ef206cb303975403b73 (patch) | |
tree | 590d6cb51461608cbbe6eeac94ec6a4a9464107b /crawl-ref/source/spl-other.cc | |
parent | 4f4fca30c5a92f50e3142b36a93dbc5f40002565 (diff) | |
download | crawl-ref-df690be638a174e82a272ef206cb303975403b73.tar.gz crawl-ref-df690be638a174e82a272ef206cb303975403b73.zip |
Use vector.empty() for emptiness tests.
Unlike some other containers, it's unlikely it's faster than checking size()
anywhere, but let's be consistent.
Diffstat (limited to 'crawl-ref/source/spl-other.cc')
-rw-r--r-- | crawl-ref/source/spl-other.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-other.cc b/crawl-ref/source/spl-other.cc index f939a9ee87..7f3463b9df 100644 --- a/crawl-ref/source/spl-other.cc +++ b/crawl-ref/source/spl-other.cc @@ -217,7 +217,7 @@ void start_recall(int type) if (type > 0 && branch_allows_followers(you.where_are_you)) populate_offlevel_recall_list(rlist); - if (rlist.size() > 0) + if (!rlist.empty()) { // Sort the recall list roughly by HD, randomizing a little for (unsigned int i = 0; i < rlist.size(); ++i) |