Fixed the unary minus bug reported by elvman.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@922 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2007-09-07 18:22:50 +00:00
parent 5f25e2100b
commit 7c965509aa
1 changed files with 1 additions and 1 deletions

View File

@ -714,7 +714,7 @@ bool COBJMeshFileLoader::retrieveVertexIndices(c8* pVertexData, s32* pIdx, const
// if no number was found index will become 0 and later on -1 by decrement // if no number was found index will become 0 and later on -1 by decrement
if (word[0]=='-') if (word[0]=='-')
{ {
pIdx[idxType] = -core::strtol10(word+1,0); pIdx[idxType] = -1*core::strtol10(word+1,0);
switch (idxType) switch (idxType)
{ {
case 0: case 0: