Merge pull request #2526 from rconde01/bugfix/issue_2525_lwo_node_name_repeats

initialize unnamed node uniqueness index outside of loop
pull/2523/head^2
Kim Kulling 2019-06-29 00:31:05 +02:00 committed by GitHub
commit 01d144ce89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1328,6 +1328,7 @@ void LWOImporter::LoadLWO2File()
bool skip = false;
LE_NCONST uint8_t* const end = mFileBuffer + fileSize;
unsigned int iUnnamed = 0;
while (true)
{
if (mFileBuffer + sizeof(IFF::ChunkHeader) > end)break;
@ -1339,7 +1340,6 @@ void LWOImporter::LoadLWO2File()
break;
}
uint8_t* const next = mFileBuffer+head.length;
unsigned int iUnnamed = 0;
if(!head.length) {
mFileBuffer = next;