You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix FileAccessMemory off by one error in eof_reached
This commit is contained in:
@@ -119,7 +119,7 @@ uint64_t FileAccessMemory::get_length() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool FileAccessMemory::eof_reached() const {
|
bool FileAccessMemory::eof_reached() const {
|
||||||
return pos > length;
|
return pos >= length;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t FileAccessMemory::get_8() const {
|
uint8_t FileAccessMemory::get_8() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user