mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
Fixed a struct size issue
svn-id: r29219
This commit is contained in:
parent
979121ae12
commit
0e693cbbfb
@ -417,7 +417,7 @@ byte *KyraEngine_v2::loadTIMFile(const char *filename, byte *buffer, int32 buffe
|
||||
return NULL;
|
||||
}
|
||||
|
||||
formBlockSize += 120 + sizeof(TIMStructUnk1) * 10;
|
||||
formBlockSize += sizeof(TIMHeader) + 120 + sizeof(TIMStructUnk1) * 10;
|
||||
|
||||
TIMHeader *timHeader;
|
||||
if (buffer == NULL || bufferSize < formBlockSize) {
|
||||
@ -432,7 +432,7 @@ byte *KyraEngine_v2::loadTIMFile(const char *filename, byte *buffer, int32 buffe
|
||||
int32 chunkSize = file.getIFFBlockSize(AVTL_CHUNK);
|
||||
timHeader->unkFlag = -1;
|
||||
timHeader->unkFlag2 = 0;
|
||||
timHeader->unkOffset = 14;
|
||||
timHeader->unkOffset = sizeof(TIMHeader);
|
||||
timHeader->unkOffset2 = timHeader->unkOffset + sizeof(TIMStructUnk1) * 10;
|
||||
timHeader->AVTLOffset = timHeader->unkOffset2 + 120;
|
||||
timHeader->TEXTOffset = timHeader->AVTLOffset + chunkSize;
|
||||
|
Loading…
Reference in New Issue
Block a user