2
0
Эх сурвалжийг харах

LWO: ignore chunks of length zero.

Alexander Gessler 12 жил өмнө
parent
commit
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