summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authormajestic <majesticcoding@gmail.com>2020-11-09 15:18:49 +0100
committermajestic <majesticcoding@gmail.com>2020-11-09 15:18:49 +0100
commitcf6a9a8341d27abb9b4936912e8cdd5e8379d373 (patch)
tree5c477a6788ec8c6cb2b7a2cb995d482fb9a0419a /src/render
parentPickup fix (diff)
downloadre3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.tar
re3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.tar.gz
re3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.tar.bz2
re3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.tar.lz
re3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.tar.xz
re3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.tar.zst
re3-cf6a9a8341d27abb9b4936912e8cdd5e8379d373.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Glass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Glass.cpp b/src/render/Glass.cpp
index 426fa7f1..536d94e0 100644
--- a/src/render/Glass.cpp
+++ b/src/render/Glass.cpp
@@ -967,7 +967,7 @@ CGlass::BreakGlassPhysically(CVector pos, float radius)
for ( int32 j = 0; j < col->numTriangles; j++ )
{
if ( CCollision::TestSphereTriangle(sphere,
- col->vertices, col->triangles[i], col->trianglePlanes[i]) )
+ col->vertices, col->triangles[j], col->trianglePlanes[j]) )
{
hit = true;
}