summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-16 22:33:46 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-16 22:33:46 +0100
commit5c93440b007ff9e1948fab8761517fccf1046fc9 (patch)
tree51aed13ce65730041adf97c569ae74ad3d05e023 /crawl-ref/source/show.cc
parentb4544535b4cba05e494c17d9b06d18ae36edcdde (diff)
downloadcrawl-ref-5c93440b007ff9e1948fab8761517fccf1046fc9.tar.gz
crawl-ref-5c93440b007ff9e1948fab8761517fccf1046fc9.zip
Fix uninitialized warning.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index 84c9e26640..ada2ffa120 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -90,7 +90,7 @@ static unsigned short _tree_colour(const coord_def& where)
static unsigned short _feat_colour(const coord_def &where,
const dungeon_feature_type feat)
{
- unsigned short colour;
+ unsigned short colour = BLACK;
const feature_def &fdef = get_feature_def(feat);
// TODO: consolidate with feat_is_stair etc.
bool excluded_stairs = (feat >= DNGN_STONE_STAIRS_DOWN_I