Browse Source

- BUGFIX: Crash in obj-model.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@832 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 15 years ago
parent
commit
613a4cc679
1 changed files with 8 additions and 1 deletions
  1. 8 1
      code/ObjTools.h

+ 8 - 1
code/ObjTools.h

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