Skip to content

Commit

Permalink
initial unnamed node uniqueness index outside of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rconde01 committed Jun 28, 2019
1 parent 1ec01a8 commit f5ece83
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 f5ece83

Please sign in to comment.