summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-dump.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-08-15 00:26:00 -0400
committerJesse Luehrs <doy@tozt.net>2014-08-15 00:30:19 -0400
commit717a8ea169d759c361f97cab0bfe0daeb6762691 (patch)
tree8912c562a7cfa0fc00f9721654a801af6b8c1c1d /crawl-ref/source/wiz-dump.h
parent2af2ae1ba4bc79dc3476399d496a8e0089204aad (diff)
downloadcrawl-ref-717a8ea169d759c361f97cab0bfe0daeb6762691.tar.gz
crawl-ref-717a8ea169d759c361f97cab0bfe0daeb6762691.zip
don't reinit skills until we see a valid skill line
otherwise, we can end up with no skills at all, which causes assertion failures
Diffstat (limited to 'crawl-ref/source/wiz-dump.h')
-rw-r--r--crawl-ref/source/wiz-dump.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/wiz-dump.h b/crawl-ref/source/wiz-dump.h
index 3016b47fed..fd406e55e0 100644
--- a/crawl-ref/source/wiz-dump.h
+++ b/crawl-ref/source/wiz-dump.h
@@ -8,7 +8,8 @@
class chardump_parser {
public:
- chardump_parser(const string &f) : filename(f), in_equipment(false) { }
+ chardump_parser(const string &f)
+ : filename(f), in_equipment(false), seen_skills(false) { }
bool parse();
@@ -26,6 +27,7 @@ private:
string filename;
bool in_equipment;
+ bool seen_skills;
};
void wizard_load_dump_file();