summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r--crawl-ref/source/dbg-util.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc
index 57bf3b1b37..84e0f87a0e 100644
--- a/crawl-ref/source/dbg-util.cc
+++ b/crawl-ref/source/dbg-util.cc
@@ -129,12 +129,15 @@ void debug_dump_levgen()
else
{
const CrawlHashTable &vaults = props[TEMP_VAULTS_KEY].get_table();
- CrawlHashTable::const_iterator i = vaults.begin();
-
- for (; i != vaults.end(); ++i)
+ if (!vaults.empty())
{
- mprf(" %s: %s", i->first.c_str(),
- i->second.get_string().c_str());
+ CrawlHashTable::const_iterator i = vaults.begin();
+
+ for (; i != vaults.end(); ++i)
+ {
+ mprf(" %s: %s", i->first.c_str(),
+ i->second.get_string().c_str());
+ }
}
}
mpr("");
@@ -413,5 +416,3 @@ int debug_cap_stat(int stat)
stat > 127 ? 127
: stat);
}
-
-