Utility/OBJParser: Fix negative offset handling for good

This commit is contained in:
Lynix 2018-01-07 22:36:39 +01:00
parent 68fae51548
commit 98eaf83ea9
1 changed files with 6 additions and 0 deletions

View File

@ -234,6 +234,8 @@ namespace Nz
error = true; error = true;
break; break;
} }
++p;
} }
if (n < 0) if (n < 0)
@ -245,6 +247,8 @@ namespace Nz
error = true; error = true;
break; break;
} }
++n;
} }
if (t < 0) if (t < 0)
@ -256,6 +260,8 @@ namespace Nz
error = true; error = true;
break; break;
} }
++t;
} }
if (static_cast<std::size_t>(p) > m_positions.size()) if (static_cast<std::size_t>(p) > m_positions.size())