summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index 80a4b63cd6..eee99451cf 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -798,8 +798,12 @@ void ouch( int dam, int death_source, char death_type, const char *aux )
hiscores_new_entry(se);
logfile_new_entry(se);
- if (death_type != KILLED_BY_LEAVING && death_type != KILLED_BY_WINNING)
+ if (death_type != KILLED_BY_LEAVING
+ && death_type != KILLED_BY_WINNING
+ && death_type != KILLED_BY_QUITTING)
+ {
save_ghost();
+ }
}
#endif