mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-12 23:04:09 +00:00
couple of fixes
This commit is contained in:
parent
29d7b983d7
commit
60045ec6cd
9 changed files with 22 additions and 24 deletions
|
@ -1357,6 +1357,7 @@ CCollision::DistToLine(const CVector *l0, const CVector *l1, const CVector *poin
|
|||
void
|
||||
CCollision::CalculateTrianglePlanes(CColModel *model)
|
||||
{
|
||||
assert(model);
|
||||
if(model->numTriangles == 0)
|
||||
return;
|
||||
|
||||
|
@ -1367,7 +1368,6 @@ CCollision::CalculateTrianglePlanes(CColModel *model)
|
|||
lptr->Remove();
|
||||
ms_colModelCache.head.Insert(lptr);
|
||||
}else{
|
||||
assert(model);
|
||||
lptr = ms_colModelCache.Insert(model);
|
||||
if(lptr == nil){
|
||||
// make room if we have to, remove last in list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue