Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-05-09 04:00:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-09 04:00:50 +0300
commiteb811538960147e68fd6c2c530ed3ca67fa875e6 (patch)
tree0a2ce14fa419c94cfd50827fdd0054c13a115d50 /source/gameengine
parent54ac84f2b841f6948c8befca8ded95c101a5a2c4 (diff)
Cleanup: warning (sequence-point)
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Physics/Bullet/CcdPhysicsController.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
index 4285093fde0..5c5a4d3cc56 100644
--- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
+++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
@@ -2436,7 +2436,7 @@ bool CcdShapeConstructionInfo::UpdateMesh(class KX_GameObject *gameobj, class RA
m_polygonIndexArray.resize(tot_bt_tris);
- for (int p = 0; p < numpolys;) {
+ for (int p = 0; p < numpolys; p++) {
RAS_Polygon *poly = meshobj->GetPolygon(p);
if (poly->IsCollider()) {
@@ -2467,10 +2467,10 @@ bool CcdShapeConstructionInfo::UpdateMesh(class KX_GameObject *gameobj, class RA
}
m_polygonIndexArray[p] = p;
if (poly->VertexCount() == 4) {
+ p++;
// if the poly is a quad we transform it in two triangles
- m_polygonIndexArray[p + 1] = p++;
+ m_polygonIndexArray[p] = p;
}
- p++;
}
}