Browse Source

Fixed EOF flag not resetting on seek back

TGRCDev 6 years ago
parent
commit
c6f7015bca
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/io/file_access_compressed.cpp

+ 2 - 1
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) {