summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/place.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-01 13:32:27 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-01 13:32:27 +0200
commit9c6c079912b1ee0f2588c29245de0192e39faaca (patch)
treed29eab71443e99df141370d39618dff1323a6163 /crawl-ref/source/place.cc
parent13de7371cc88e498b00ed00f05db97da9d98ce4b (diff)
downloadcrawl-ref-9c6c079912b1ee0f2588c29245de0192e39faaca.tar.gz
crawl-ref-9c6c079912b1ee0f2588c29245de0192e39faaca.zip
More string width fixes.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r--crawl-ref/source/place.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc
index 9ac775c5e6..18016331eb 100644
--- a/crawl-ref/source/place.cc
+++ b/crawl-ref/source/place.cc
@@ -146,7 +146,7 @@ std::string short_place_name(unsigned short place)
std::string prep_branch_level_name(unsigned short packed_place)
{
std::string place = place_name(packed_place, true, true);
- if (place.length() && place != "Pandemonium")
+ if (!place.empty() && place != "Pandemonium")
place[0] = tolower(place[0]);
return (place.find("level") == 0 ? "on " + place
: "in " + place);