Explorar el Código

initial unnamed node uniqueness index outside of loop

Rob Conde hace 6 años
padre
commit
f5ece83f31
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      code/LWO/LWOLoader.cpp

+ 1 - 1
code/LWO/LWOLoader.cpp

@@ -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;