You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Fix always true/false values
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user