diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-05-17 23:27:02 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-05-25 22:23:50 -0700 |
commit | 45708ce3bb43928b896f86db63b39e3b3dc107a7 (patch) | |
tree | 1ca4d54933bf6c02da617ce1541237b1e9a24e43 /crawl-ref/source/files.cc | |
parent | 3798112249fd3d3cba55ec8c0c0f48c73bbea6f3 (diff) | |
download | crawl-ref-45708ce3bb43928b896f86db63b39e3b3dc107a7.tar.gz crawl-ref-45708ce3bb43928b896f86db63b39e3b3dc107a7.zip |
Don't die when encountering 0-byte ghost files
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index e60839eb81..5b3d28fec4 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1761,6 +1761,7 @@ bool load_ghost(bool creating_level) return false; // no such ghost. } + inf.set_safe_read(true); // don't die on 0-byte bones if (_ghost_version_compatible(inf)) { try |