- BUGFIX: Crash in obj-model.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@832 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2010-10-26 18:32:07 +00:00
parent abec0f9a77
commit 613a4cc679
1 changed files with 8 additions and 1 deletions

View File

@ -57,7 +57,14 @@ namespace Assimp
template<class char_t> template<class char_t>
inline bool isEndOfBuffer( char_t it, char_t end ) inline bool isEndOfBuffer( char_t it, char_t end )
{ {
end--; if ( it == end )
{
return true;
}
else
{
end--;
}
return ( it == end ); return ( it == end );
} }