summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/chardump.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-06 00:05:32 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-06 00:05:32 +0000
commit9eb2c4a0906be48b60a5bb297abf507e6112c7bc (patch)
treefb6fd0bdbee2aa1721b2195b7a4009a10e2020b1 /crawl-ref/source/chardump.cc
parentde3ab3ce26d65fe03341feda94103982a01d8922 (diff)
downloadcrawl-ref-9eb2c4a0906be48b60a5bb297abf507e6112c7bc.tar.gz
crawl-ref-9eb2c4a0906be48b60a5bb297abf507e6112c7bc.zip
In the interest of efficency only call StashTrack.update_corpses()
when absolutelty necessary, rather than whenever the player isn't delayed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5493 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/chardump.cc')
-rw-r--r--crawl-ref/source/chardump.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc
index fd54f88a5b..832ffd76ea 100644
--- a/crawl-ref/source/chardump.cc
+++ b/crawl-ref/source/chardump.cc
@@ -1197,6 +1197,8 @@ static bool write_dump( const std::string &fname, dump_params &par)
file_name += strip_filename_unsafe_chars(fname);
+ StashTrack.update_corpses();
+
std::string stash_file_name;
stash_file_name = file_name;
stash_file_name += ".lst";