Bugfix : Removed const_cast from CIOSystemWrapper::Exists. ( merged from GitHub, thanks to Riku Palomäki ).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1220 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
kimmi
2012-03-20 20:54:31 +00:00
parent 478846c310
commit 9f6e45d651

View File

@@ -114,10 +114,9 @@ public:
// ...................................................................
bool Exists( const char* pFile) const {
CIOSystemWrapper* pip = const_cast<CIOSystemWrapper*>(this);
IOStream* p = pip->Open(pFile);
aiFile* p = mFileSystem->OpenProc(mFileSystem,pFile,"rb");
if (p){
pip->Close(p);
mFileSystem->CloseProc(mFileSystem,p);
return true;
}
return false;