Skip to content

Commit

Permalink
Merge pull request #2526 from rconde01/bugfix/issue_2525_lwo_node_nam…
Browse files Browse the repository at this point in the history
…e_repeats

initialize unnamed node uniqueness index outside of loop
  • Loading branch information
kimkulling committed Jun 28, 2019
2 parents 1ec01a8 + f5ece83 commit 01d144c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/LWO/LWOLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -1339,7 +1340,6 @@ void LWOImporter::LoadLWO2File()
break;
}
uint8_t* const next = mFileBuffer+head.length;
unsigned int iUnnamed = 0;

if(!head.length) {
mFileBuffer = next;
Expand Down

0 comments on commit 01d144c

Please sign in to comment.