diff --git a/components/nifbullet/bullet_nif_loader.cpp b/components/nifbullet/bullet_nif_loader.cpp index 3a97e0233..6a958e0e7 100644 --- a/components/nifbullet/bullet_nif_loader.cpp +++ b/components/nifbullet/bullet_nif_loader.cpp @@ -85,7 +85,6 @@ void BulletShape::deleteShape(btCollisionShape* mShape) if(mShape->isCompound()) { btCompoundShape* ms = static_cast(Shape); - btCompoundShapeChild* child = ms->getChildList(); int a = ms->getNumChildShapes(); for(int i=0; i data.getPtr(); - int numVerts = data->vertices.length / 3; float* vertices = (float*)data->vertices.ptr; unsigned short* triangles = (unsigned short*)data->triangles.ptr; - for(int i=0; i < data->triangles.length; i = i+3) + for(unsigned int i=0; i < data->triangles.length; i = i+3) { btVector3 b1(vertices[triangles[i+0]*3]*parentScale,vertices[triangles[i+0]*3+1]*parentScale,vertices[triangles[i+0]*3+2]*parentScale); btVector3 b2(vertices[triangles[i+1]*3]*parentScale,vertices[triangles[i+1]*3+1]*parentScale,vertices[triangles[i+1]*3+2]*parentScale); @@ -399,4 +397,4 @@ void ManualBulletShapeLoader::load(const std::string &name,const std::string &gr if (!ptr.isNull()) return; BulletShapeManager::getSingleton().create(name,group,true,this); -} \ No newline at end of file +}