From 1f913ec13051152981b9fed9f7b2989afdbe654c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 27 Oct 2017 13:19:52 +0100 Subject: [PATCH] Fixed warning --- src/osgAnimation/RigTransformHardware.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgAnimation/RigTransformHardware.cpp b/src/osgAnimation/RigTransformHardware.cpp index 651e48cf7..dcd7fe6a3 100644 --- a/src/osgAnimation/RigTransformHardware.cpp +++ b/src/osgAnimation/RigTransformHardware.cpp @@ -178,7 +178,7 @@ RigTransformHardware::BoneWeightAttribList RigTransformHardware::createVertexAtt int boneIndexInVec4 = b*2; (*array)[j][0 + boneIndexInVec4] = 0; (*array)[j][1 + boneIndexInVec4] = 0; - if (boneIndexInList < _vertexIndexMatrixWeightList[j].size()) + if (boneIndexInList < static_cast(_vertexIndexMatrixWeightList[j].size())) { float boneIndex = static_cast(_vertexIndexMatrixWeightList[j][boneIndexInList].getIndex()); float boneWeight = _vertexIndexMatrixWeightList[j][boneIndexInList].getWeight();