summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-maps.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-06-07 11:43:21 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-06-07 11:43:21 +0200
commit77d4abcafb3fa3251f3380a3c79257d6cecd4750 (patch)
tree394f4751a9227835105582c57aa130778173ba82 /crawl-ref/source/dbg-maps.cc
parent1e7bede887eff42b06226340024f309b62766f5d (diff)
downloadcrawl-ref-77d4abcafb3fa3251f3380a3c79257d6cecd4750.tar.gz
crawl-ref-77d4abcafb3fa3251f3380a3c79257d6cecd4750.zip
Fix a --mapstat crash with > 8 octorings.
Data such as uniques or artefacts generated is cleared between generator runs, and there is enough runs for oddities like this.
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r--crawl-ref/source/dbg-maps.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc
index a7fc38bc71..ec72f16390 100644
--- a/crawl-ref/source/dbg-maps.cc
+++ b/crawl-ref/source/dbg-maps.cc
@@ -405,6 +405,10 @@ static void _write_mapgen_stats()
void generate_map_stats()
{
+ // Warn assertions about possible oddities like the artefact list being
+ // cleared.
+ you.wizard = true;
+
initialise_branch_depths();
// We have to run map preludes ourselves.
run_map_global_preludes();