summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-10 15:28:52 +0100
committerGitHub <noreply@github.com>2020-11-10 15:28:52 +0100
commite87cd7077ebb70d453117a60a1849ae9804db598 (patch)
tree5c477a6788ec8c6cb2b7a2cb995d482fb9a0419a /src/render
parentPickup fix (diff)
parentCGlass indices fix (diff)
downloadre3-e87cd7077ebb70d453117a60a1849ae9804db598.tar
re3-e87cd7077ebb70d453117a60a1849ae9804db598.tar.gz
re3-e87cd7077ebb70d453117a60a1849ae9804db598.tar.bz2
re3-e87cd7077ebb70d453117a60a1849ae9804db598.tar.lz
re3-e87cd7077ebb70d453117a60a1849ae9804db598.tar.xz
re3-e87cd7077ebb70d453117a60a1849ae9804db598.tar.zst
re3-e87cd7077ebb70d453117a60a1849ae9804db598.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;
}