mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 15:50:00 +00:00
Fix
This commit is contained in:
parent
356f101078
commit
587c788ce3
|
@ -228,7 +228,7 @@ CFileLoader::LoadCollisionFileFirstTime(uint8 *buffer, uint32 size, uint8 colSlo
|
||||||
while(size > 8){
|
while(size > 8){
|
||||||
header = (ColHeader*)buffer;
|
header = (ColHeader*)buffer;
|
||||||
modelsize = header->size;
|
modelsize = header->size;
|
||||||
if(header->ident == 'LLOC')
|
if(header->ident != 'LLOC')
|
||||||
return size-8 < CDSTREAM_SECTOR_SIZE;
|
return size-8 < CDSTREAM_SECTOR_SIZE;
|
||||||
memcpy(modelname, buffer+8, 24);
|
memcpy(modelname, buffer+8, 24);
|
||||||
memcpy(work_buff, buffer+32, modelsize-24);
|
memcpy(work_buff, buffer+32, modelsize-24);
|
||||||
|
@ -262,7 +262,7 @@ CFileLoader::LoadCollisionFile(uint8 *buffer, uint32 size, uint8 colSlot)
|
||||||
while(size > 8){
|
while(size > 8){
|
||||||
header = (ColHeader*)buffer;
|
header = (ColHeader*)buffer;
|
||||||
modelsize = header->size;
|
modelsize = header->size;
|
||||||
if(header->ident == 'LLOC')
|
if(header->ident != 'LLOC')
|
||||||
return size-8 < CDSTREAM_SECTOR_SIZE;
|
return size-8 < CDSTREAM_SECTOR_SIZE;
|
||||||
memcpy(modelname, buffer+8, 24);
|
memcpy(modelname, buffer+8, 24);
|
||||||
memcpy(work_buff, buffer+32, modelsize-24);
|
memcpy(work_buff, buffer+32, modelsize-24);
|
||||||
|
|
Loading…
Reference in a new issue