summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-16 10:36:42 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-16 10:36:42 +0000
commit0b23da9f3754bcbd9ca3561f4c9c8d77cd6c598b (patch)
tree8e01584d82e85841b08ab7a9b8ee4d8daf19ccd0 /crawl-ref/source/hiscores.cc
parent77e8d85b527894a56d77bde660c9726e5176d9bd (diff)
downloadcrawl-ref-0b23da9f3754bcbd9ca3561f4c9c8d77cd6c598b.tar.gz
crawl-ref-0b23da9f3754bcbd9ca3561f4c9c8d77cd6c598b.zip
Fix some more bad accesses to strings.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9098 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index cf27ba0992..331d5ae67b 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -1423,7 +1423,7 @@ std::string scorefile_entry::death_description(death_desc_verbosity verbosity)
}
// put the damage on the weapon line if there is one
- if (auxkilldata[0] == 0)
+ if (auxkilldata.empty())
needs_damage = true;
break;
@@ -1432,7 +1432,7 @@ std::string scorefile_entry::death_description(death_desc_verbosity verbosity)
break;
case KILLED_BY_CLOUD:
- if (auxkilldata[0] == 0)
+ if (auxkilldata.empty())
desc += terse? "cloud" : "Engulfed by a cloud";
else
{
@@ -1846,7 +1846,7 @@ std::string scorefile_entry::death_description(death_desc_verbosity verbosity)
{
desc += _hiscore_newline_string();
- if (death_type == KILLED_BY_MONSTER && auxkilldata[0])
+ if (death_type == KILLED_BY_MONSTER && !auxkilldata.empty())
{
if (!semiverbose)
{