Merge pull request #31129 from TGRCdev/compressed_eof_fix

Fixed EOF flag not resetting on seek back in compressed file
This commit is contained in:
Rémi Verschelde 2019-08-06 07:56:25 +02:00 committed by GitHub
commit 4188b0c139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {