Browse Source

FIX: Use attribute to fix warning.

Kim Kulling 3 years ago
parent
commit
6415c0bfc9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/AssetLib/MD5/MD5Parser.cpp

+ 1 - 1
code/AssetLib/MD5/MD5Parser.cpp

@@ -64,7 +64,7 @@ MD5Parser::MD5Parser(char *_buffer, unsigned int _fileSize) : buffer(_buffer), b
     ai_assert(nullptr != _buffer);
     ai_assert(0 != _fileSize);
 
-    bufferEnd = buffer + _fileSize;
+    bufferEnd = buffer + fileSize;
     ASSIMP_LOG_DEBUG("MD5Parser begin");
 
     // parse the file header