summaryrefslogtreecommitdiffstats
path: root/src/core/FileLoader.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 16:20:57 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 16:20:57 +0100
commit587c788ce37e4167d20ce2196858d0cd1d948037 (patch)
tree833698c6995a4e1381f89edc41f7a1d56b9bd0f6 /src/core/FileLoader.cpp
parentFix cAudioManager::ProcessPedOneShots crash (diff)
downloadre3-587c788ce37e4167d20ce2196858d0cd1d948037.tar
re3-587c788ce37e4167d20ce2196858d0cd1d948037.tar.gz
re3-587c788ce37e4167d20ce2196858d0cd1d948037.tar.bz2
re3-587c788ce37e4167d20ce2196858d0cd1d948037.tar.lz
re3-587c788ce37e4167d20ce2196858d0cd1d948037.tar.xz
re3-587c788ce37e4167d20ce2196858d0cd1d948037.tar.zst
re3-587c788ce37e4167d20ce2196858d0cd1d948037.zip
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r--src/core/FileLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp
index f86911ca..9aaba611 100644
--- a/src/core/FileLoader.cpp
+++ b/src/core/FileLoader.cpp
@@ -228,7 +228,7 @@ CFileLoader::LoadCollisionFileFirstTime(uint8 *buffer, uint32 size, uint8 colSlo
while(size > 8){
header = (ColHeader*)buffer;
modelsize = header->size;
- if(header->ident == 'LLOC')
+ if(header->ident != 'LLOC')
return size-8 < CDSTREAM_SECTOR_SIZE;
memcpy(modelname, buffer+8, 24);
memcpy(work_buff, buffer+32, modelsize-24);
@@ -262,7 +262,7 @@ CFileLoader::LoadCollisionFile(uint8 *buffer, uint32 size, uint8 colSlot)
while(size > 8){
header = (ColHeader*)buffer;
modelsize = header->size;
- if(header->ident == 'LLOC')
+ if(header->ident != 'LLOC')
return size-8 < CDSTREAM_SECTOR_SIZE;
memcpy(modelname, buffer+8, 24);
memcpy(work_buff, buffer+32, modelsize-24);