diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-03-15 10:48:31 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-03-17 01:59:24 +0100 |
commit | b4fccc77727ff17bba9d7ba61fb6f66f70fe8b83 (patch) | |
tree | f1d1fb3746c8855d56444122a1b755850b4683ca /crawl-ref/source/hiscores.h | |
parent | 1dfc7ac0dc104b380a5096d820cd8aef0ee9c495 (diff) | |
download | crawl-ref-b4fccc77727ff17bba9d7ba61fb6f66f70fe8b83.tar.gz crawl-ref-b4fccc77727ff17bba9d7ba61fb6f66f70fe8b83.zip |
Don't crash on unknown species in the score file. Don't trample such scores, nor any with unknown fields.
Diffstat (limited to 'crawl-ref/source/hiscores.h')
-rw-r--r-- | crawl-ref/source/hiscores.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/hiscores.h b/crawl-ref/source/hiscores.h index 1aa00d08d4..757c8a9418 100644 --- a/crawl-ref/source/hiscores.h +++ b/crawl-ref/source/hiscores.h @@ -65,6 +65,8 @@ private: struct scorefile_entry { public: + std::string raw_line; + std::string version; long points; std::string name; @@ -162,6 +164,7 @@ private: void init_with_fields(); void add_auxkill_field() const; void set_score_fields() const; + void fixup_char_name(); std::string short_kill_message() const; std::string long_kill_message() const; |