Browse Source

LWO: ignore chunks of length zero.

Alexander Gessler 12 năm trước cách đây
mục cha
commit
e9ffabbfee
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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