summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-delve.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-08-31 15:01:39 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-09-01 15:23:24 +0200
commitdab06ca6e2eb914740ff00cb4963cfd24203b0ea (patch)
treeecb6b201c9d64d6febcb3e0ede5b1c4cf769a846 /crawl-ref/source/dgn-delve.cc
parente80ec3f9fc7130dccca0c866c692b854c4ed787e (diff)
downloadcrawl-ref-dab06ca6e2eb914740ff00cb4963cfd24203b0ea.tar.gz
crawl-ref-dab06ca6e2eb914740ff00cb4963cfd24203b0ea.zip
Silence a bogus compiler warning.
prev2 will always be set when used, but the compiler doesn't notice that.
Diffstat (limited to 'crawl-ref/source/dgn-delve.cc')
-rw-r--r--crawl-ref/source/dgn-delve.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-delve.cc b/crawl-ref/source/dgn-delve.cc
index 6951e70170..b1e238e7a0 100644
--- a/crawl-ref/source/dgn-delve.cc
+++ b/crawl-ref/source/dgn-delve.cc
@@ -153,7 +153,7 @@ static int ngb_groups(map_lines *map, coord_def c)
{
ASSERT(_in_map(map, c));
- bool prev2, prev = _dug(map, c + Compass[0]);
+ bool prev2 = 0, prev = _dug(map, c + Compass[0]);
int cnt = 0;
for (int d = 7; d >= 0; d--)
{