diff options
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index c98cf0b027..040a4ba570 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1616,11 +1616,12 @@ static void restore_tagged_file( FILE *restoreFile, int fileType, char tags[NUM_TAGS]; tag_set_expected(tags, fileType); - while(1) + while (true) { tag_type tt = tag_read(restoreFile, minorVersion); if (tt == TAG_NO_TAG) break; + tags[tt] = 0; // tag read if (fileType == TAGTYPE_PLAYER_NAME) break; |