From 717a8ea169d759c361f97cab0bfe0daeb6762691 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 15 Aug 2014 00:26:00 -0400 Subject: 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 --- crawl-ref/source/wiz-dump.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/wiz-dump.h') 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(); -- cgit v1.2.3-54-g00ecf