3DSLoader: Skipped chunks of size 0

pull/192/head
henrikbuchholz 2013-08-14 15:53:33 +02:00
parent cc3f8b82f9
commit 35fa7cb441
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,8 @@ static const aiImporterDesc desc = {
Discreet3DS::Chunk chunk; \ Discreet3DS::Chunk chunk; \
ReadChunk(&chunk); \ ReadChunk(&chunk); \
int chunkSize = chunk.Size-sizeof(Discreet3DS::Chunk); \ int chunkSize = chunk.Size-sizeof(Discreet3DS::Chunk); \
if(chunkSize <= 0) \
continue; \
const int oldReadLimit = stream->GetReadLimit(); \ const int oldReadLimit = stream->GetReadLimit(); \
stream->SetReadLimit(stream->GetCurrentPos() + chunkSize); \ stream->SetReadLimit(stream->GetCurrentPos() + chunkSize); \