summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2012-11-03 14:18:24 +0100
committerFlorian Diebold <flodiebold@gmail.com>2012-11-03 14:18:49 +0100
commit02c0615cd4f19db9041f341eddec1182bb1d58f6 (patch)
treeb1e7d03e620b7d18bd888559e83e50a25decb2ff /crawl-ref/source/externs.h
parent55e4ec84c3d55cafd38c91c1413bbee11eae6892 (diff)
downloadcrawl-ref-02c0615cd4f19db9041f341eddec1182bb1d58f6.tar.gz
crawl-ref-02c0615cd4f19db9041f341eddec1182bb1d58f6.zip
Fix a (probably unconsequential) uninitialized variable warning from valgrind.
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index af4024b1e8..bedb0afa14 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -42,6 +42,9 @@ struct tile_flavour
// Used as a random value or for special cases e.g. (bazaars, gates).
unsigned short special;
+
+ tile_flavour(): floor_idx(0), wall_idx(0), feat_idx(0),
+ floor(0), wall(0), feat(0), special(0) {}
};
// A glorified unsigned int that assists with ref-counting the mcache.