Merge pull request #9072 from andyque/fixCompileError

fix compile error
This commit is contained in:
minggo 2014-11-10 16:03:21 +08:00
commit 8e3590978d
1 changed files with 2 additions and 2 deletions

View File

@ -1114,7 +1114,7 @@ void Sprite3DReskinTest::onTouchesEnded(const std::vector<Touch*>& touches, Even
void Sprite3DReskinTest::applyCurSkin()
{
for (ssize_t i = 0; i < _sprite->getMeshCount(); i++) {
auto mesh = _sprite->getMeshByIndex(i);
auto mesh = _sprite->getMeshByIndex(static_cast<int>(i));
bool isVisible = false;
for (auto& it : _curSkin) {
if (mesh->getName() == it.second)
@ -1123,7 +1123,7 @@ void Sprite3DReskinTest::applyCurSkin()
break;
}
}
_sprite->getMeshByIndex(i)->setVisible(isVisible);
_sprite->getMeshByIndex(static_cast<int>(i))->setVisible(isVisible);
}
}