summaryrefslogtreecommitdiff
path: root/core/io/file_access_buffered.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/file_access_buffered.cpp')
-rw-r--r--core/io/file_access_buffered.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/io/file_access_buffered.cpp b/core/io/file_access_buffered.cpp
index 83ff532aa4..93eaeb08c5 100644
--- a/core/io/file_access_buffered.cpp
+++ b/core/io/file_access_buffered.cpp
@@ -141,9 +141,7 @@ int FileAccessBuffered::get_buffer(uint8_t *p_dest, int p_length) const {
int left = cache_data_left();
if (left == 0) {
- if (to_read > 0) {
- file.offset += to_read;
- };
+ file.offset += to_read;
return total_read;
};
if (left < 0) {