Alex 2 vuotta sitten
vanhempi
commit
f7e7f82b9d
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      code/AssetLib/MDL/MDLLoader.cpp
  2. 1 1
      code/AssetLib/MDL/MDLLoader.h

+ 1 - 1
code/AssetLib/MDL/MDLLoader.cpp

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

+ 1 - 1
code/AssetLib/MDL/MDLLoader.h

@@ -150,7 +150,7 @@ protected:
     */
     */
     void SizeCheck(const void* szPos);
     void SizeCheck(const void* szPos);
     void SizeCheck(const void* szPos, const char* szFile, unsigned int iLine);
     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
     /** Validate the header data structure of a game studio MDL7 file