Godot Engine – Multi-platform 2D and 3D game engine
Fix incorrect eof when reading using `FileAccessCompressed`
mattigua84d7ad7d4eb
diff --git a/core/io/file_access_compressed.cpp b/core/io/file_access_compressed.cppindex 1ba926de08d..136402a1c5d 100644--- a/core/io/file_access_compressed.cpp+++ b/core/io/file_access_compressed.cpp@@ -286,9 +286,7 @@ uint64_t FileAccessCompressed::get_buffer(uint8_t *p_dst, uint64_t p_length) con// We're done! We read back the whole file.read_block--;at_end = true;- if (dst_idx + 1 < p_length) {- read_eof = true;- }+ read_eof = true;return dst_idx;}