mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix FileAccessMemory off by one error in eof_reached
This commit is contained in:
parent
4b6ad34988
commit
2561f6fc52
@ -119,7 +119,7 @@ uint64_t FileAccessMemory::get_length() const {
|
||||
}
|
||||
|
||||
bool FileAccessMemory::eof_reached() const {
|
||||
return pos > length;
|
||||
return pos >= length;
|
||||
}
|
||||
|
||||
uint8_t FileAccessMemory::get_8() const {
|
||||
|
Loading…
Reference in New Issue
Block a user