Commit 7c965509 authored by hybrid's avatar hybrid

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
parent 5f25e210
......@@ -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 (word[0]=='-')
{
pIdx[idxType] = -core::strtol10(word+1,0);
pIdx[idxType] = -1*core::strtol10(word+1,0);
switch (idxType)
{
case 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment