Add const

This commit is contained in:
Alex
2023-08-03 17:10:17 +00:00
parent d7dc88e0d0
commit f7e7f82b9d
2 changed files with 2 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ void MDLImporter::InternReadFile(const std::string &pFile,
// ------------------------------------------------------------------------------------------------
// Check whether we're still inside the valid file range
bool MDLImporter::IsPosValid(const void *szPos) {
bool MDLImporter::IsPosValid(const void *szPos) const {
return szPos && (const unsigned char *)szPos <= this->mBuffer + this->iFileSize && szPos >= this->mBuffer;
}