ソースを参照

Fix FileAccessMemory off by one error in eof_reached

ACB 1 年間 前
コミット
2561f6fc52
1 ファイル変更1 行追加1 行削除
  1. 1 1
      core/io/file_access_memory.cpp

+ 1 - 1
core/io/file_access_memory.cpp

@@ -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 {