Fixed off-by-one error for array bound check

This commit is contained in:
WerWolv 2021-01-10 22:52:12 +01:00
parent b4ef19dac7
commit e4c2049975
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ namespace hex::lang {
entries.push_back(entry);
if (this->m_currOffset >= this->m_provider->getActualSize())
if (this->m_currOffset > this->m_provider->getActualSize())
throwEvaluateError("array exceeds size of file");
}