diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 14:06:55 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 14:06:55 +0200 |
commit | 4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9 (patch) | |
tree | 2f970e7b4fc457d3312b8ee3fef2d0de72f6fff8 /src/core/FileLoader.cpp | |
parent | More use of GetModelIndex (diff) | |
download | re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.gz re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.bz2 re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.lz re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.xz re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.tar.zst re3-4cc1bb92e74eaabe9d5ef3d20fb658d577699fa9.zip |
Diffstat (limited to 'src/core/FileLoader.cpp')
-rw-r--r-- | src/core/FileLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/FileLoader.cpp b/src/core/FileLoader.cpp index b7d82089..8e20d4f3 100644 --- a/src/core/FileLoader.cpp +++ b/src/core/FileLoader.cpp @@ -384,7 +384,7 @@ CFileLoader::LoadClumpFile(RwStream *stream, uint32 id) return false; mi = (CClumpModelInfo*)CModelInfo::GetModelInfo(id); mi->SetClump(clump); - if(mi->m_type == MITYPE_PED && id != 0 && RwStreamFindChunk(stream, rwID_CLUMP, nil, nil)){ + if (mi->GetModelType() == MITYPE_PED && id != 0 && RwStreamFindChunk(stream, rwID_CLUMP, nil, nil)) { // Read LOD ped clump = RpClumpStreamRead(stream); if(clump){ @@ -1325,7 +1325,7 @@ CFileLoader::ReloadObject(const char *line) #ifdef FIX_BUGS mi && #endif - mi->m_type == MITYPE_SIMPLE && !strcmp(mi->GetName(), model) && mi->m_numAtomics == numObjs) { + mi->GetModelType() == MITYPE_SIMPLE && !strcmp(mi->GetName(), model) && mi->m_numAtomics == numObjs) { mi->SetLodDistances(dist); SetModelInfoFlags(mi, flags); } else { |