summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-17 02:27:28 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-17 22:25:38 +0200
commitdf690be638a174e82a272ef206cb303975403b73 (patch)
tree590d6cb51461608cbbe6eeac94ec6a4a9464107b /crawl-ref/source/maps.cc
parent4f4fca30c5a92f50e3142b36a93dbc5f40002565 (diff)
downloadcrawl-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/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 525001911e..58eb1332a1 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -520,7 +520,7 @@ static coord_def _find_minivault_place(
candidates.push_back(v1);
}
}
- if (candidates.size() > 0)
+ if (!candidates.empty())
return candidates[random2(candidates.size())];
}