Преглед изворни кода

LWO: ignore chunks of length zero.

Alexander Gessler пре 12 година
родитељ
комит
e9ffabbfee
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      code/LWOLoader.cpp

+ 5 - 0
code/LWOLoader.cpp

@@ -1296,6 +1296,11 @@ void LWOImporter::LoadLWO2File()
 		uint8_t* const next = mFileBuffer+head->length;
 		unsigned int iUnnamed = 0;
 
+		if(!head->length) {
+			mFileBuffer = next;
+			continue;
+		}
+
 		switch (head->type)
 		{
 			// new layer