summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 16:31:52 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 16:31:52 +0000
commit78e4b50a9ca14a10410bca6661433138892346cb (patch)
treef91e2d2edf451e217eb37b34f6ca1719bb92dd39 /crawl-ref/source/files.cc
parent96797ebeaa01788ed1a6ed8f9ba38891ac165db2 (diff)
downloadcrawl-ref-78e4b50a9ca14a10410bca6661433138892346cb.tar.gz
crawl-ref-78e4b50a9ca14a10410bca6661433138892346cb.zip
Fix [2573054]: idle time not being clamped on level save/load (e.g. SIGHUP or
when the game is saved.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8931 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 979498b696..5db2f4294b 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -776,7 +776,7 @@ static void _write_tagged_file( FILE *outf, int fileType,
// all other tags
for (int i = 1; i < NUM_TAGS; i++)
if (tags[i] == 1)
- tag_write((tag_type)i, outf);
+ tag_write(static_cast<tag_type>(i), outf);
}
bool travel_load_map( branch_type branch, int absdepth )