Browse Source

Fixed mislead refactoring in HMPLoader.cpp. http://sourceforge.net/forum/forum.php?thread_id=2886037&forum_id=817653

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@310 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 16 years ago
parent
commit
3ba9ea8b5b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      code/HMPLoader.cpp

+ 3 - 3
code/HMPLoader.cpp

@@ -99,10 +99,10 @@ void HMPImporter::InternReadFile( const std::string& pFile,
 		throw new ImportErrorException( "HMP File is too small.");
 
 	// Allocate storage and copy the contents of the file to a memory buffer
-	pScene = pScene;
-	pIOHandler = pIOHandler;
+	this->pScene     = pScene;
+	this->pIOHandler = pIOHandler;
 
-	std::vector<uint8_t> buffer(fileSize+1);
+	std::vector<uint8_t> buffer(fileSize);
 	mBuffer = &buffer[0];
 	file->Read( (void*)mBuffer, 1, fileSize);
 	iFileSize = (unsigned int)fileSize;