diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-06 07:56:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 07:56:25 +0200 |
commit | 4188b0c139dc71b425528db97afdc1e54c2fb5b4 (patch) | |
tree | a5bae7310a2cbd5a587a600b9d599021d465728c /core/io | |
parent | 27c518702a89c0874815042d09b2cf3980cc088e (diff) | |
parent | c6f7015bca044ae4ce079a6304f089c2751d03b8 (diff) |
Merge pull request #31129 from TGRCdev/compressed_eof_fix
Fixed EOF flag not resetting on seek back in compressed file
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/file_access_compressed.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/file_access_compressed.cpp b/core/io/file_access_compressed.cpp index 6c4310a572..102cd9cf6c 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) { |