From ebece65936b8f77819b38eb8bfcc1f0de995a5ff Mon Sep 17 00:00:00 2001 From: TGRCDev Date: Mon, 5 Aug 2019 18:20:18 -0700 Subject: [PATCH] Fixed EOF flag not resetting on seek back (cherry picked from commit c6f7015bca044ae4ce079a6304f089c2751d03b8) --- core/io/file_access_compressed.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/io/file_access_compressed.cpp b/core/io/file_access_compressed.cpp index b268d5c710a..9f38b634879 100644 --- a/core/io/file_access_compressed.cpp +++ b/core/io/file_access_compressed.cpp @@ -208,7 +208,8 @@ void FileAccessCompressed::seek(size_t p_position) { if (p_position == read_total) { at_end = true; } else { - + at_end = false; + read_eof = false; int block_idx = p_position / block_size; if (block_idx != read_block) {