git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@310 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2009-01-20 11:32:39 +00:00
parent 5e59a60ea2
commit 3ba9ea8b5b
1 changed files with 3 additions and 3 deletions

View File

@ -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;