summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerwincoumans <erwincoumans@google.com>2021-10-25 09:10:29 -0700
committerGitHub <noreply@github.com>2021-10-25 09:10:29 -0700
commite4a450a53dc6eded9d16a0d1dde07fc8a25760d0 (patch)
treebe7f766a7994f40e565e6cb2eb31b3d21a589a90
parent33cceed500d3b3b010b33e6cfa43148aebd40349 (diff)
parentba65e909bc3f099351969b6ad114121e7a11f66b (diff)
downloadbullet3-e4a450a53dc6eded9d16a0d1dde07fc8a25760d0.tar.gz
Merge pull request #3980 from akien-mga/patch-1
SoftBody: Fix local variable shadowing warning
-rw-r--r--src/BulletSoftBody/btSoftBody.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BulletSoftBody/btSoftBody.h b/src/BulletSoftBody/btSoftBody.h
index e967e8790..d5b01faf3 100644
--- a/src/BulletSoftBody/btSoftBody.h
+++ b/src/BulletSoftBody/btSoftBody.h
@@ -1317,8 +1317,8 @@ public:
}
for (int k = 0; k < m_faceNodeContacts.size(); ++k)
{
- int i = indices[k];
- btSoftBody::DeformableFaceNodeContact& c = m_faceNodeContacts[i];
+ int idx = indices[k];
+ btSoftBody::DeformableFaceNodeContact& c = m_faceNodeContacts[idx];
btSoftBody::Node* node = c.m_node;
btSoftBody::Face* face = c.m_face;
const btVector3& w = c.m_bary;