Skip to content

Commit

Permalink
Add const
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Aug 3, 2023
1 parent d7dc88e commit f7e7f82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/AssetLib/MDL/MDLLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion code/AssetLib/MDL/MDLLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class MDLImporter : public BaseImporter
*/
void SizeCheck(const void* szPos);
void SizeCheck(const void* szPos, const char* szFile, unsigned int iLine);
bool IsPosValid(const void* szPos);
bool IsPosValid(const void* szPos) const;

// -------------------------------------------------------------------
/** Validate the header data structure of a game studio MDL7 file
Expand Down

0 comments on commit f7e7f82

Please sign in to comment.