summaryrefslogtreecommitdiffstats
path: root/src/core/Collision.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-20 15:19:33 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-20 15:19:33 +0200
commitbe8e29e4e2dede741516be156dc370376acb13a9 (patch)
tree8e68c4e5c40b69511dd2c151aa35c917c3062dea /src/core/Collision.cpp
parentfixed replay (diff)
parentone more fix (diff)
downloadre3-be8e29e4e2dede741516be156dc370376acb13a9.tar
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.gz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.bz2
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.lz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.xz
re3-be8e29e4e2dede741516be156dc370376acb13a9.tar.zst
re3-be8e29e4e2dede741516be156dc370376acb13a9.zip
Diffstat (limited to 'src/core/Collision.cpp')
-rw-r--r--src/core/Collision.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Collision.cpp b/src/core/Collision.cpp
index 9a8adf46..7982e77d 100644
--- a/src/core/Collision.cpp
+++ b/src/core/Collision.cpp
@@ -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