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-9d2fd5bffc1fpull/1/head
parent
5e59a60ea2
commit
3ba9ea8b5b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue