LWO: ignore chunks of length zero.

pull/90/head
Alexander Gessler 2013-09-18 14:27:24 +02:00
parent f8f7e2468c
commit e9ffabbfee
1 changed files with 5 additions and 0 deletions

View File

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