Fixed EOF flag not resetting on seek back

(cherry picked from commit c6f7015bca)
This commit is contained in:
TGRCDev 2019-08-05 18:20:18 -07:00 committed by Rémi Verschelde
parent bbec80ca8a
commit ebece65936
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ void FileAccessCompressed::seek(size_t p_position) {
if (p_position == read_total) { if (p_position == read_total) {
at_end = true; at_end = true;
} else { } else {
at_end = false;
read_eof = false;
int block_idx = p_position / block_size; int block_idx = p_position / block_size;
if (block_idx != read_block) { if (block_idx != read_block) {