Merge branch 'master' into patch-2

This commit is contained in:
Kim Kulling
2023-02-22 21:33:20 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ AI_WONT_RETURN void B3DImporter::Fail(const string &str) {
// ------------------------------------------------------------------------------------------------
int B3DImporter::ReadByte() {
if (_pos > _buf.size()) {
if (_pos >= _buf.size()) {
Fail("EOF");
}