couple of fixes

This commit is contained in:
aap
2019-07-20 14:39:38 +02:00
parent 29d7b983d7
commit 60045ec6cd
9 changed files with 22 additions and 24 deletions

View File

@@ -361,10 +361,10 @@ CFileLoader::LoadClumpFile(const char *filename)
nodename = GetFrameNodeName(RpClumpGetFrame(clump));
GetNameAndLOD(nodename, name, &n);
mi = (CClumpModelInfo*)CModelInfo::GetModelInfo(name, nil);
assert(mi->IsClump());
if(mi)
if(mi){
assert(mi->IsClump());
mi->SetClump(clump);
else
}else
RpClumpDestroy(clump);
}
}