summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 11:20:03 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-08 11:20:03 +0000
commit9e2952d470e02deab56ae8e2ea8773a8ab1662b7 (patch)
treeec6f880744656323f33c9eb41c604e9bef65df27 /crawl-ref/source/mapdef.cc
parentb8a6d083c31f909c8517027f4b3ab937d7293012 (diff)
downloadcrawl-ref-9e2952d470e02deab56ae8e2ea8773a8ab1662b7.tar.gz
crawl-ref-9e2952d470e02deab56ae8e2ea8773a8ab1662b7.zip
Map DEPTH handling was completely smashed, fixed.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1796 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 4c957c3cc9..809b278c4b 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -1221,7 +1221,11 @@ void map_def::read_depth_ranges(FILE *inf)
depths.clear();
const int nranges = readShort(inf);
for (int i = 0; i < nranges; ++i)
- depths[i].read(inf);
+ {
+ level_range lr;
+ lr.read(inf);
+ depths.push_back(lr);
+ }
}
void map_def::set_file(const std::string &s)